/* ==================== AUTH PAGES PROFESSIONAL DESIGN ==================== */

.auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0fdf7 0%, #e8f9f1 50%, #f0fdf7 100%);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(46, 184, 125, 0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(35, 158, 104, 0.08) 0%, transparent 70%);
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(30px, 30px) rotate(180deg);
    }
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
}

/* Auth Box */
.auth-box {
    background: white;
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(46, 184, 125, 0.1);
    padding: 48px 40px;
    transition: all 0.4s ease;
}

.auth-box.large {
    max-width: 600px;
}

.auth-box:hover {
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(46, 184, 125, 0.2);
    transform: translateY(-4px);
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header i {
    font-size: 4rem;
    background: linear-gradient(135deg, #c24242 0%, #a33636 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    display: block;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.auth-header h2 {
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.auth-header p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* Auth Form */
.auth-form {
    margin-bottom: 32px;
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.auth-form .form-group {
    margin-bottom: 24px;
}

.auth-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.auth-form label i {
    color: #c24242;
    width: 16px;
}

.auth-form .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: #c24242;
    background: white;
    box-shadow: 0 0 0 4px rgba(46, 184, 125, 0.1);
}

.auth-form .form-control::placeholder {
    color: #9ca3af;
}

/* Password Input with Toggle */
.password-input {
    position: relative;
}

.password-input .form-control {
    padding-right: 48px;
}

.password-input .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
    border-radius: 6px;
}

.password-input .toggle-password:hover {
    color: #c24242;
    background: rgba(46, 184, 125, 0.1);
}

.auth-form small {
    display: block;
    color: #6b7280;
    font-size: 0.8125rem;
    margin-top: 6px;
}

/* Submit Button */
.auth-form .btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-form .btn-block::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.auth-form .btn-block:hover::before {
    width: 300px;
    height: 300px;
}

.auth-form .btn-block i {
    margin-right: 8px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 2px solid #f3f4f6;
}

.auth-footer p {
    color: #6b7280;
    font-size: 0.9375rem;
    margin: 0;
}

.auth-footer a {
    color: #c24242;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c24242;
    transition: width 0.3s ease;
}

.auth-footer a:hover::after {
    width: 100%;
}

.auth-footer a:hover {
    color: #a33636;
}

/* Alerts */
.auth-box .alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-box .alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 2px solid #fecaca;
}

.auth-box .alert-error i {
    color: #dc2626;
}

.auth-box .alert-success {
    background: #f0fdf7;
    color: #065f46;
    border: 2px solid #86efac;
}

.auth-box .alert-success i {
    color: #c24242;
}

.auth-box .alert i {
    font-size: 1.25rem;
}

/* Forgot Password Link */
.forgot-password {
    text-align: right;
    margin-top: -16px;
    margin-bottom: 24px;
}

.forgot-password a {
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #c24242;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-page {
        padding: 20px 16px;
    }

    .auth-box {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .auth-header i {
        font-size: 3rem;
    }

    .auth-header h2 {
        font-size: 1.75rem;
    }

    .auth-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-form .btn-block {
        padding: 14px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 24px 20px;
    }

    .auth-header {
        margin-bottom: 32px;
    }
}

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}