/**
 * VEGMANAGE ERP - Auth Page Styles
 */

/* =========================================================================
   Auth Body & Background
   ========================================================================= */
body.auth-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    font-family: 'Noto Sans TC', sans-serif;
}

/* =========================================================================
   Auth Wrapper - Centered Container
   ========================================================================= */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* =========================================================================
   Auth Card
   ========================================================================= */
.auth-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
    max-width: 420px;
    width: 100%;
    padding: 2.5rem;
    animation: authFadeIn 0.5s ease-out;
}

/* =========================================================================
   Auth Brand
   ========================================================================= */
.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand .brand-logo {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.auth-brand .brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    letter-spacing: 0.05em;
}

.auth-brand .brand-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* =========================================================================
   Auth Form
   ========================================================================= */
.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.auth-form .form-control {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.625rem;
    font-size: 1rem;
    color: #111827;
    background-color: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    background-color: #ffffff;
}

.auth-form .form-control::placeholder {
    color: #9ca3af;
}

.auth-form .form-check {
    margin-bottom: 1.25rem;
}

.auth-form .form-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    cursor: pointer;
}

.auth-form .form-check-input {
    width: 18px;
    height: 18px;
    accent-color: #059669;
    cursor: pointer;
}

/* =========================================================================
   Auth Submit Button
   ========================================================================= */
.auth-form .btn-block {
    display: block;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-form .btn-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.auth-form .btn-block:active {
    transform: translateY(0);
}

.auth-form .btn-block:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* =========================================================================
   Auth Footer Links
   ========================================================================= */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.auth-links p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.auth-links a {
    color: #059669;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-links a:hover {
    color: #047857;
    text-decoration: underline;
}

/* =========================================================================
   Auth Alert / Error Messages
   ========================================================================= */
.auth-form .alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.auth-form .alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* =========================================================================
   Fade-In Animation
   ========================================================================= */
@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.75rem 1.5rem;
        border-radius: 0.75rem;
    }

    .auth-brand .brand-logo {
        font-size: 2.5rem;
    }

    .auth-brand .brand-name {
        font-size: 1.25rem;
    }
}
