/* Antigravity Auth Modal CSS style */

.ag-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ag-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ag-modal-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(215, 99, 20, 0.2);
    border-radius: 16px;
    padding: 35px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    font-family: var(--ag-font-primary, 'Cormorant Garamond', serif);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.ag-modal-overlay.active .ag-modal-container {
    transform: translateY(0);
}

.ag-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.ag-modal-close:hover {
    color: var(--ag-brand-orange, #D76314);
}

.ag-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.ag-modal-header h2 {
    font-family: var(--ag-font-primary, 'Cormorant Garamond', serif);
    font-weight: 700;
    font-size: 28px;
    color: #111;
    margin: 0 0 5px 0;
}

.ag-modal-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.ag-form-group {
    margin-bottom: 15px;
}

.ag-form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.ag-form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ag-form-group input:focus {
    outline: none;
    border-color: var(--ag-brand-orange, #D76314);
    box-shadow: 0 0 0 3px rgba(215, 99, 20, 0.15);
}

.ag-modal-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.ag-modal-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.ag-modal-divider span {
    background: #fdfdfb;
    padding: 0 15px;
    font-size: 14px;
    color: #666;
    position: relative;
    z-index: 2;
}

.ag-social-logins {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.ag-telegram-widget-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ag-auth-error-msg {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(220, 53, 69, 0.2);
}
