/* =========================================================================
   login.css - Styles for the login authentication page
   ========================================================================= */

.login-body {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-body);
    position: relative;
    overflow: hidden;
}

/* Background decoration */
.login-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.login-bg-shape {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff8c61 100%);
    opacity: 0.1;
    border-radius: 50%;
}

.shape-1 { width: 400px; height: 400px; top: -100px; left: -100px; }
.shape-2 { width: 600px; height: 600px; bottom: -200px; right: -200px; }
.shape-3 { width: 200px; height: 200px; top: 30%; right: 15%; opacity: 0.05; }

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 2rem;
}

.login-card {
    background: #fff;
    border-radius: 1rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05), 0 20px 48px rgba(0,0,0,0.05);
}

.login-brand {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
}

.login-brand-name {
    font-size: 1.5rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.login-brand-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-error {
    background: #fff5f5;
    color: #c53030;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #fed7d7;
}

.login-error svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

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

.input-icon {
    position: absolute;
    left: 1rem;
    color: #a0aec0;
    display: flex;
    align-items: center;
}

.input-icon svg { width: 20px; height: 20px; }

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--text-heading);
    transition: all 0.2s;
    outline: none;
    background-color: #f7fafc;
}

.form-input:focus {
    border-color: var(--primary-orange);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.toggle-password:hover { color: var(--text-heading); }
.toggle-password svg { width: 20px; height: 20px; }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-main);
    user-select: none;
}

.remember-me input {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-orange);
}

.forgot-link {
    color: var(--primary-orange);
    font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; }

.btn-login {
    width: 100%;
    background-color: var(--primary-orange);
    color: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-login:hover {
    background-color: #e05e2e;
}
.btn-login:active {
    transform: translateY(1px);
}

.btn-login svg { width: 20px; height: 20px; }

.login-footer-text {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
