/* Modern Authentication Styles - Blue & Teal Theme */

/* Auth Page Container */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.03) 0%, rgba(20, 184, 166, 0.03) 100%);
}

/* Auth Card */
.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    position: relative;
}

.auth-card-large {
    max-width: 650px;
}

/* Auth Header */
.auth-header {
    background: linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.auth-header-content {
    position: relative;
    z-index: 1;
}

.auth-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    backdrop-filter: blur(10px);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.auth-subtitle {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Auth Body */
.auth-body {
    padding: 2.5rem 2rem;
}

/* Alert Messages */
.auth-alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.auth-alert i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.auth-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 2px solid rgba(239, 68, 68, 0.2);
}

.auth-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 2px solid rgba(245, 158, 11, 0.2);
}

.auth-alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.auth-alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.25rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.auth-alert-close:hover {
    opacity: 1;
}

/* Form Groups */
.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
}

.auth-form-label i {
    color: #0284c7;
    font-size: 1rem;
}

.auth-form-label .required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.auth-form-input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.auth-form-input:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.auth-form-input:hover {
    border-color: #cbd5e1;
}

.auth-form-input.error {
    border-color: #ef4444;
}

/* Input with Icon */
.auth-input-wrapper {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
}

.auth-input-with-icon {
    padding-left: 3rem;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #0284c7;
}

/* Help Text */
.auth-help-text {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.auth-help-text i {
    color: #0284c7;
    margin-right: 0.375rem;
}

.auth-help-list {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
    color: #64748b;
    font-size: 0.875rem;
}

.auth-help-list li {
    margin-bottom: 0.25rem;
}

/* Error Messages */
.auth-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.auth-error i {
    font-size: 0.875rem;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    margin-top: 1.5rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

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

/* Divider */
.auth-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 2rem 0;
    position: relative;
}

.auth-divider::before {
    content: 'or';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer-link {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
}

.auth-footer-link:hover {
    color: #14b8a6;
    gap: 0.5rem;
}

.auth-footer-text {
    color: #64748b;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

/* Two Column Layout for Registration */
.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.auth-brand-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.auth-brand-text {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-brand-tagline {
    color: #64748b;
    font-size: 0.9375rem;
}

/* Loading State */
.auth-submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-submit-btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-wrapper {
        padding: 1.5rem 1rem;
    }

    .auth-body {
        padding: 2rem 1.5rem;
    }

    .auth-header {
        padding: 2rem 1.5rem;
    }

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

    .auth-form-row {
        grid-template-columns: 1fr;
    }

    .auth-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .auth-wrapper {
        padding: 1rem 0.75rem;
    }

    .auth-body {
        padding: 1.5rem 1.25rem;
    }

    .auth-header {
        padding: 1.5rem 1.25rem;
    }

    .auth-card {
        border-radius: 16px;
    }

    .auth-form-input {
        padding: 0.75rem 1rem;
    }
}

/* Accessibility */
.auth-form-input:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .auth-wrapper {
        background: white;
    }

    .auth-card {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}
