/* Auth Gate — Login screen */

#auth-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.ag-card {
    width: 360px;
    padding: 40px 36px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
}

.ag-brand {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.ag-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.ag-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin: 0 0 20px;
}

.ag-text strong {
    color: #1a1a1a;
    font-weight: 500;
}

.ag-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ag-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.ag-input:focus {
    border-color: #1a1a1a;
}

.ag-input::placeholder {
    color: #bbb;
}

.ag-btn {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 4px;
}

.ag-btn:hover { background: #333; }
.ag-btn:disabled { background: #ccc; cursor: default; }

.ag-btn-google {
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
}

.ag-btn-google:hover {
    background: #fafafa;
    border-color: #ccc;
}

.ag-btn-back {
    background: none;
    color: #888;
    border: 1px solid #e0e0e0;
}

.ag-btn-back:hover {
    background: #fafafa;
    color: #333;
}

.ag-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #ccc;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
}

.ag-divider::before,
.ag-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

.ag-error {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #e04040;
    min-height: 16px;
}

.ag-footer {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    color: #ccc;
}
