/* Auth Gate - Shared login modal styles */
/* All classes prefixed with .ag- to avoid collisions */

.ag-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    animation: ag-fadeIn 0.3s ease-out;
}

@keyframes ag-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ag-modal {
    background: #1a1a2e;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: ag-slideUp 0.3s ease-out;
}

@keyframes ag-slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ag-modal h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0;
    text-align: center;
}

.ag-modal .ag-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-align: center;
    margin-bottom: 28px;
}

.ag-field {
    margin-bottom: 16px;
}

.ag-field label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.ag-field input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ag-field input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.ag-field input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.ag-error {
    display: none;
    background: rgba(255, 80, 80, 0.2);
    border: 1px solid rgba(255, 80, 80, 0.4);
    color: #ff8888;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.ag-error.ag-visible {
    display: block;
}

.ag-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.ag-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.ag-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ag-footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.ag-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.ag-footer a:hover {
    color: #fff;
}

.ag-toggle {
    text-align: center;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.ag-toggle a {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.ag-toggle a:hover {
    color: #a5b4fc;
}

.ag-hidden {
    display: none !important;
}
