/* --- General Body & Container Styling --- */
.login-body {
    margin: 0;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; /* Modern, readable font */
    background: linear-gradient(160deg, #0A0A0A 0%, #1A1A1A 100%); /* Deep dark gradient for consistency */
    color: #E0E0E0; /* Off-white for general text */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensure it covers full viewport height */
    padding: 20px; /* Add some padding for smaller screens */
    box-sizing: border-box; /* Include padding in element's total width/height */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-container {
    background-color: #1C1C1E; /* Dark gray background for the form container */
    padding: 35px 30px; /* Increased padding */
    border-radius: 16px; /* More rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7); /* Deeper, softer shadow */
    width: 90%;
    max-width: 400px; /* Slightly wider max-width */
    text-align: center;
    border: 1px solid #282828; /* Subtle border */
    animation: fadeInScale 0.6s ease-out forwards; /* Animation on load */
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-container h2 {
    margin-bottom: 30px; /* More space below heading */
    color: #FFFFFF; /* Pure white for heading */
    font-size: 2.2em; /* Larger heading */
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-bottom: 10px;
}

.login-container h2::after { /* Kinema+ green accent under heading */
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #2E8B57; /* Kinema+ Green */
    border-radius: 2px;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* More space between form elements */
}

/* --- Input Fields --- */
.login-container input {
    width: calc(100% - 24px); /* Account for padding */
    padding: 12px; /* More padding */
    font-size: 1em;
    background-color: #222222; /* Darker input background */
    color: #E0E0E0; /* Off-white text */
    border: 1px solid #3A3A3A; /* Subtle dark border */
    border-radius: 8px; /* Rounded input fields */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-container input::placeholder { /* Placeholder text color */
    color: #888888;
}

.login-container input:focus {
    outline: none;
    border-color: #2E8B57; /* Kinema+ Green border on focus */
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.3); /* Green glow on focus */
}

/* --- Submit Button --- */
.login-container button {
    width: 100%;
    padding: 14px; /* More padding for button */
    background-color: #2E8B57; /* Kinema+ Green for primary action */
    color: white;
    border: none;
    font-size: 1.1em; /* Larger font */
    font-weight: 600;
    cursor: pointer;
    border-radius: 30px; /* Fully rounded button */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.login-container button:hover {
    background-color: #246B44; /* Darker green on hover */
    transform: translateY(-3px); /* Lift effect */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.login-container button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4) inset;
    background-color: #1A5432;
}

.error-message {
    color: #FF6B6B; /* A more subtle red for errors */
    font-size: 0.95em;
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
}

/* --- Profile Photo Section --- */
.photo-profil-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px; /* More space above this section */
    padding-top: 20px;
    border-top: 1px solid #282828; /* Separator line */
    text-align: center; /* Ensures content inside is centered too */
}

.photo-profil-container label {
    font-weight: 600;
    margin-bottom: 15px; /* More space below label */
    font-size: 1.1em;
    color: #E0E0E0; /* Off-white for label */
    display: block; /* Ensure label takes full width for proper centering */
}

#profilePhoto {
    padding: 10px; /* More padding */
    border: 1px solid #3A3A3A;
    border-radius: 8px;
    width: calc(100% - 20px); /* Adjust for padding */
    max-width: 300px;
    background-color: #222222;
    color: #E0E0E0;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    /* Ensuring it's centered if it doesn't take 100% width */
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#profilePhoto:focus {
    outline: none;
    border-color: #2E8B57; /* Kinema+ Green on focus */
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.3);
}

#photoPreview {
    margin-top: 20px; /* More space above preview */
    width: 120px; /* Larger preview image */
    height: 120px; /* Larger preview image */
    object-fit: cover;
    border-radius: 50%; /* Make image round */
    border: 3px solid #2E8B57; /* Kinema+ Green border for preview */
    box-shadow: 0 0 0 5px rgba(46, 139, 87, 0.2), 0 5px 15px rgba(0, 0, 0, 0.3); /* Subtle glow and shadow */
    transition: transform 0.3s ease;
    display: block; /* For centering */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px; /* Space below the image */
}

#photoPreview:hover {
    transform: scale(1.05); /* Slight scale on hover */
}

/* --- Account Link (Sign up/Login toggle) --- */
.login-container p {
    margin-top: 25px; /* More space above the link */
    color: #A0A0A0; /* Softer gray text for general info */
    font-size: 0.95em;
}

.login-container p a {
    color: #2E8B57; /* Kinema+ Green for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.login-container p a:hover {
    text-decoration: underline;
    color: #3CD070; /* Slightly brighter green on hover */
}


/* --- Responsive Adjustments --- */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        border-radius: 12px;
        width: 95%; /* Take more width on very small screens */
    }
    .login-container h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .login-container h2::after {
        width: 40px;
    }
    .signup-form {
        gap: 15px;
    }
    .login-container input {
        padding: 10px;
        font-size: 0.95em;
    }
    .login-container button {
        padding: 12px;
        font-size: 1em;
    }
    .error-message {
        font-size: 0.9em;
    }
    .photo-profil-container {
        margin-top: 25px;
        padding-top: 15px;
    }
    .photo-profil-container label {
        font-size: 1em;
        margin-bottom: 10px;
    }
    #profilePhoto {
        padding: 8px;
        font-size: 0.9em;
    }
    #photoPreview {
        width: 100px;
        height: 100px;
        margin-top: 15px;
        border-width: 2px; /* Slightly thinner border */
    }
    .login-container p {
        margin-top: 20px;
        font-size: 0.9em;
    }
}
