@import url('https://fonts.googleapis.com/css2?family=Norse+Bold&display=swap');
@font-face {
    font-family: "Norse Bold";
    src: url(Norse-Bold.otf);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f9fafb;
}

.container {
    display: flex;
    width: 100vw;
    height: 100vh;
    background-color: white;
}

/* Sidebar with Background Image */
.sidebar {
    flex: 1;
    position: relative;
    min-width: 300px;
    max-height: 100vh;
}

.sidebar-background {
    width: 100%;
    height: 100%;
    background-image: url('picture.jpg');
    background-size: 110%;
    background-position: center;
    position: relative;
}

.logo-overlay {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 120px;
    width: auto;
}

.logo-overlay h1 {
    font-family: 'Norse Bold';
    font-size: 5rem;
    color: white;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Main Content Area */
.main-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    overflow-y: auto;
}

.text {
    background-color: #f9fafb;
    padding: 40px;
    padding-bottom: 20px;
}

.text h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.sidebar-content p {
    line-height: 1.6;
    color: #555;
    max-width: 600px;
}

/* Form Styles - Two Column Layout */
.signup-form {
    flex: 1;
    padding: 20px 40px 40px 40px;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.form-row {
    display: flex;
    gap: 60px;
    margin-bottom: 20px;
    width: 100%;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
    outline: none;
}

input.dirty:invalid,
input:focus:invalid {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.7rem;
    margin-top: 5px;
    display: none;
}

input.dirty:invalid + .error-message,
input:focus:invalid + .error-message {
    display: block;
}

.form-actions {
    margin-top: 30px;
}

button {
    background-color: #596D48;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

button:hover {
    background-color: #4a5c3a;
}

.login-link {
    font-size: 0.9rem;
    color: #333;
}

.login-link a {
    color: #596D48;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .sidebar {
        max-height: 40vh;
        min-height: 40vh;
    }
    
    .main-content {
        max-height: none;
    }
    
    .logo-overlay h1 {
        font-size: 3rem;
    }
    
    .logo {
        height: 60px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .signup-form {
        padding: 20px 20px 40px 20px;
    }
}