/* ===== MODERN AUTHENTICATION STYLES ===== */
.auth-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    padding: 2rem 1rem;
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.01) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.01) 50%, transparent 100%);
    background-size: 60px 60px;
    pointer-events: none;
    opacity: 0.5;
}

.auth-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.06);
    padding: 3.5rem 3rem;
    max-width: 460px;
    width: 100%;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header .logo {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 2rem;
    display: inline-block;
    color: #0a0a0a;
    letter-spacing: -0.02em;
}

.auth-header h2 {
    color: #0a0a0a;
    margin-bottom: 0.75rem;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-header p {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    font-weight: 400;
}

.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: -0.01em;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    color: #0a0a0a;
    font-weight: 400;
}

.form-input:hover {
    border-color: #d1d5db;
    background: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #0a0a0a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #374151;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    accent-color: #0a0a0a;
}

.checkbox-label span {
    display: inline;
    opacity: 1;
    visibility: visible;
    color: inherit;
    font-size: 0.875rem;
}

.checkbox-label a {
    color: #0a0a0a;
    text-decoration: underline;
    font-weight: 600;
}

.link-primary {
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.link-primary:hover {
    color: #374151;
    text-decoration: underline;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.75rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 1rem;
    color: #9ca3af;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.error-message {
    padding: 0.875rem 1rem;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 1rem;
    font-weight: 500;
}

.success-message {
    padding: 0.875rem 1rem;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 10px;
    color: #16a34a;
    font-size: 0.875rem;
    margin-top: 1rem;
    font-weight: 500;
}

.auth-footer {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.auth-footer a {
    color: #0a0a0a;
    font-weight: 600;
}

/* Modern Button Styles */
.auth-form .btn-primary,
.auth-form .btn-secondary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.9375rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.auth-form .btn-primary {
    background: #0a0a0a;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.auth-form .btn-primary:hover:not(:disabled) {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-form .btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.auth-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-form .btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    margin-top: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.auth-form .btn-secondary:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.auth-form .btn-secondary svg {
    flex-shrink: 0;
}

.btn-block {
    width: 100%;
}

.btn-loader {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid #fff;
    width: 16px;
    height: 16px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a0a0a;
    letter-spacing: -0.02em;
}

.modal-body {
    padding: 0;
}

.modal-body p {
    margin: 0 0 1.25rem 0;
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.modal .btn-primary {
    background: #0a0a0a;
    color: #ffffff;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.01em;
}

.modal .btn-primary:hover:not(:disabled) {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal .btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modal .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== MESSAGE STYLES ===== */
.message {
    margin: 1.5rem 0;
    animation: fadeIn 0.3s ease-in-out;
}

.message p {
    padding: 0.875rem 1.125rem;
    border-radius: 10px;
    margin: 0.5rem 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    font-weight: 500;
}

.message .success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.1);
}

.message .error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.1);
}

.message .info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-box {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-header p {
        font-size: 0.875rem;
    }
    
    .form-input {
        font-size: 0.9375rem;
    }
}
