/* frontend/static/css/auth.css */

body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 16px;
    overscroll-behavior-y: none;
}

.form-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    color: var(--text);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.logo-img {
    height: 48px;
    margin: 0 auto 12px;
    display: block;
}

.logo-text {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

.logo-text span {
    background: linear-gradient(135deg, #4f8fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 { text-align: center; margin-bottom: 32px; }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; color: var(--text-secondary); margin-bottom: 6px; }
.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    outline: none;
}
.input-group input:focus { border-color: #4f8fff; }

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4f8fff, #7c3aed);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-top: 8px;
}
.btn:hover { box-shadow: 0 0 25px rgba(139,92,246,0.6); }

.links { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }
.links a { color: #a78bfa; text-decoration: none; }

.error-message { color: #f87171; text-align: center; margin-bottom: 16px; display: none; }

.radio-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.radio-card {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
    border: 2px solid transparent;
}

.radio-card.business {
    background: rgba(79, 143, 255, 0.1);
    border-color: rgba(79, 143, 255, 0.3);
    color: #4f8fff;
}

.radio-card.business.selected {
    border-color: #4f8fff;
    background: rgba(79, 143, 255, 0.15);
}

.radio-card.personal {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.radio-card.personal.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.radio-card input[type="radio"] { display: none; }
.radio-card:hover { opacity: 0.9; }

/* Pull-to-refresh индикатор */
.ptr-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, rgba(79, 143, 255, 0.15), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.15s ease;
    z-index: 9999;
    pointer-events: none;
}
.ptr-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.ptr-indicator.visible .ptr-content { opacity: 1; }
.ptr-icon { font-size: 24px; }
.ptr-text { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

@media (max-width: 768px) {
    .form-container { padding: 32px 20px; }
    .logo-text { font-size: 24px; }
    h2 { font-size: 20px; }
}
