.loca-auth-form {
    max-width: 440px;
    margin: 0 auto;
    font-family: inherit;
}

.loca-auth-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 28px;
}

.loca-auth-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 15px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

.loca-auth-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.loca-auth-panel {
    display: none;
}

.loca-auth-panel.active {
    display: block;
}

.loca-auth-field {
    margin-bottom: 20px;
}

.loca-auth-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.loca-auth-field input[type="email"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

.loca-auth-field input[type="email"]:focus {
    border-color: #2563eb;
}

.loca-auth-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background .2s;
    box-sizing: border-box;
}

a.loca-auth-btn {
    display: inline-block;
    width: auto;
    padding: 12px 32px;
}

.loca-auth-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

.loca-auth-btn:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

.loca-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #9ca3af;
    font-size: 13px;
}

.loca-auth-divider::before,
.loca-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.loca-auth-message {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
    min-height: 0;
}

.loca-auth-message.success {
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 10px 14px;
    border-radius: 8px;
}

.loca-auth-message.error {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 10px 14px;
    border-radius: 8px;
}

/* Перемикач ролей */
.loca-auth-role-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.loca-role-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: border-color .2s, background .2s;
    width: 100%;
}

.loca-role-btn strong {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    display: block;
}

.loca-role-btn span {
    font-size: 12px;
    color: #6b7280;
    display: block;
    line-height: 1.4;
}

.loca-role-btn.active {
    border-color: #2563eb;
    background: #eff6ff;
}

.loca-role-btn.active strong {
    color: #2563eb;
}

.loca-auth-logged-in {
    text-align: center;
    padding: 0px 0px;
}

.loca-auth-logged-in__title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.loca-auth-logged-in__sub {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* Google кнопка в auth-form */
.loca-google-btn {
    min-height: 44px;
}

.loca-auth-hint {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin: 8px 0 0;
}

@media (max-width: 480px) {
    .loca-auth-role-switcher {
        grid-template-columns: 1fr;
    }
}
