/* Login Page Styles - GoStan Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f3efe9;
    /* Beige cream background */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    max-width: 500px;
    width: 100%;
    padding: 40px;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo img {
    max-width: 280px;
    /* Increased size to match screenshot proportion */
    height: auto;
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #4a3e31;
    /* Dark brown text */
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
    position: relative;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.form-group.password-group {
    margin-bottom: 8px;
}

/* Floating Label Inputs */
.floating-label {
    position: relative;
}

.floating-label input {
    width: 100%;
    padding: 16px 16px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    color: #4a3e31;
    border: 1px solid #c4b5a5;
    border-radius: 8px;
    /* Rounded corners */
    background: transparent;
    outline: none;
    transition: border-color 0.2s ease;
}

.floating-label input:focus {
    border-color: #8b7355;
}

.floating-label label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 500;
    color: #9f8c79;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0 4px;
}

.floating-label input:focus~label,
.floating-label input:not(:placeholder-shown)~label {
    top: 0;
    font-size: 13px;
    background-color: #f3efe9;
    /* Solid background to cover border */
    color: #9f8c79;
}

/* Password Field */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: -45px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #4a3e31;
    padding: 4px;
}

.toggle-password svg {
    width: 24px;
    height: 24px;
}

/* Forgot Password Link */
.forgot-password {
    text-align: right;
    margin-bottom: 24px;
    margin-top: 4px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.forgot-password a {
    font-size: 13px;
    font-weight: 600;
    color: #4a3e31;
    text-decoration: underline;
}

.forgot-password a:hover {
    color: #6b5a45;
}

/* Remember Me Checkbox */
.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 45px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.remember-me input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    background-color: #fba036;
    border: none;
    border-radius: 3px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remember-me input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 2px;
}


.remember-me label {
    font-size: 14px;
    font-weight: 500;
    color: #4a3e31;
    cursor: pointer;
    user-select: none;
}

/* Login Button */
.btn-login {
    width: 280px;
    margin: 0 auto;
    display: block;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #4a3e31;
    background-color: #fba036;
    /* Solid orange background */
    border: none;
    border-radius: 8px;
    /* Rounded corners */
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.btn-login:hover {
    background-color: #f09528;
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Register Button */
.btn-register {
    width: 280px;
    margin: 0 auto;
    display: block;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #4a3e31;
    background: transparent;
    border: 1px solid #fba036;
    /* Orange solid border */
    border-radius: 8px;
    /* Rounded corners */
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-register:hover {
    background: rgba(251, 160, 54, 0.05);
    /* Slight orange tint */
}

/* Error Message */
.error-message {
    color: #d32f2f;
    /* Red text */
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
    text-align: left;
    margin-left: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus States for Accessibility */
.btn-login:focus-visible,
.btn-register:focus-visible,
.floating-label input:focus-visible {
    outline: 2px solid #fba036;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .logo img {
        max-width: 200px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .btn-login,
    .btn-register {
        width: 100%;
    }
}