/* Login Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    background-image: url('/images/auth-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Logo Styles */
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo-image {
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

/* Login Card */
.login-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.login-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 2rem;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    width: 1rem;
    height: 1rem;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #2c6cb9;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(44, 108, 185, 0.1);
}

.form-input.is-invalid {
    border-color: #dc2626;
}

.form-input::placeholder {
    color: #94a3b8;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #64748b;
}

.password-toggle i {
    width: 1.125rem;
    height: 1.125rem;
}

.error-message {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

/* Forgot Links */
.forgot-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.forgot-link {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #2c6cb9;
}

.forgot-separator {
    color: #cbd5e1;
}

/* Sign In Button */
.login-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(90deg, #9333ea 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.login-button:active {
    transform: translateY(0);
}

/* Remember Me */
.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.remember-checkbox {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.remember-label {
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
}

/* Join BeBran Link */
.join-link {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.join-link-text {
    color: #9333ea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.join-link-text:hover {
    color: #7c3aed;
}

/* Responsive */
@media (max-width: 640px) {
    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-title {
        font-size: 1.5rem;
    }
}

