/* css/auth.css */

/* Modal Container - Full Screen Overlay with Blur */
#auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 50, 60, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.3s ease;
}

#auth-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Modal Content - Glassmorphism Card */
.auth-modal {
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border-radius: 24px;
    padding: 32px;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

#auth-overlay.active .auth-modal {
    transform: translateY(0);
}

/* Header */
.auth-header h2 {
    color: #064e3b;
    /* darker emerald */
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.auth-header p {
    color: #6b7280;
    text-align: center;
    font-size: 0.95rem;
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-left: 4px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #10b981;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.phone-group {
    display: flex;
    gap: 10px;
}

.phone-group select {
    width: 35%;
}

.phone-group input {
    width: 65%;
}

/* Button */
.auth-btn {
    margin-top: 10px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.4);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.5);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Toggle Link */
.auth-toggle {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 10px;
}

.auth-toggle a {
    color: #059669;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

/* Hidden Utility */
.hidden {
    display: none !important;
}

/* Checkbox */
.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.checkbox-group label {
    font-size: 0.85rem;
    line-height: 1.4;
    cursor: pointer;
}

/* Error Message */
.auth-error {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
}