.aa32-auth-wrap {
    max-width: 640px;
    margin: 40px auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #111827;
}

.aa32-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #e5e7eb;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    background: #fff;
}

.aa32-tab {
    height: 74px;
    border: 0;
    border-right: 1px solid #e5e7eb;
    background: #f7f7f7;
    color: #9ca3af;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.aa32-tab:last-child {
    border-right: 0;
}

.aa32-tab.is-active {
    background: #fff;
    color: #111827;
}

.aa32-auth-card {
    border: 1px solid #e5e7eb;
    border-radius: 0 0 14px 14px;
    background: #fff;
    padding: 42px 54px 46px;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
}

.aa32-form {
    display: none;
}

.aa32-form.is-active {
    display: block;
}

.aa32-form h2 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
}

.aa32-subtitle {
    margin: 0 0 28px;
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

.aa32-form label {
    display: block;
    margin: 18px 0 8px;
    color: #374151;
    font-size: 16px;
    font-weight: 700;
}

.aa32-form input[type="text"],
.aa32-form input[type="email"],
.aa32-form input[type="password"] {
    width: 100%;
    height: 54px;
    border: 1px solid #dfe3ea;
    border-radius: 4px;
    background: #fff;
    color: #111827;
    font-size: 16px;
    padding: 0 16px;
    box-sizing: border-box;
}

.aa32-form input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 1px #059669;
}

.aa32-password-field,
.aa32-code-field {
    display: flex;
    gap: 10px;
    align-items: center;
}

.aa32-password-field input,
.aa32-code-field input {
    flex: 1;
}

.aa32-toggle-password,
.aa32-send-code-btn {
    height: 54px;
    border: 1px solid #dfe3ea;
    border-radius: 4px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    padding: 0 16px;
    cursor: pointer;
    white-space: nowrap;
}

.aa32-send-code-btn {
    background: #111827;
    border-color: #111827;
    color: #fff;
    min-width: 118px;
}

.aa32-send-code-btn:disabled,
.aa32-primary-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.aa32-remember {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin: 18px 0 22px !important;
    font-weight: 400 !important;
    color: #374151 !important;
}

.aa32-remember input {
    width: 20px;
    height: 20px;
}

.aa32-primary-btn {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 4px;
    background: #050505;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 12px;
}

.aa32-form-message {
    min-height: 24px;
    margin-top: 22px;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}

.aa32-form-message.is-error {
    color: #dc2626;
}

.aa32-form-message.is-success {
    color: #059669;
}

.aa32-auth-message {
    max-width: 640px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 640px) {
    .aa32-auth-wrap {
        margin: 24px 12px;
    }

    .aa32-auth-card {
        padding: 28px 20px 32px;
    }

    .aa32-tab {
        height: 62px;
        font-size: 16px;
    }

    .aa32-password-field,
    .aa32-code-field {
        flex-direction: column;
        align-items: stretch;
    }

    .aa32-send-code-btn,
    .aa32-toggle-password {
        width: 100%;
    }
}
