:root {
    --primary: #7e227b;
    --primary-light: #a43aa0;
    --primary-lighter: #f5edf5;
    --primary-dark: #631b60;
    --light-bg: #f8f4f9;
    --lighter-bg: #f7f7f7;
    --white: #ffffff;
    --gray: #e0e0e0;
    --dark-gray: #888888;
    --dark-text: #333333;
    --error: #d32f2f;
}

.auth-dropdown {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 350px;
    overflow: hidden;
}

.auth-illustration {
    background-color: var(--primary-lighter);
    padding: 16px;
    text-align: center;
    position: relative;
}

.auth-title {
    color: var(--primary);
    font-size: 24px;
    margin: 0;
    font-weight: 500;
}

.auth-tabs {
    display: flex;
    padding: 0 24px;
    margin-top: 20px;
    border-bottom: 1px solid var(--gray);
}

.auth-tab {
    padding: 12px 0;
    margin-right: 24px;
    font-size: 14px;
    color: var(--dark-gray);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.auth-tab.active {
    color: var(--primary);
    font-weight: 500;
}

.auth-tab.active:after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.auth-content {
    padding: 24px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-text);
    font-size: 14px;
}

.form-input-container {
    position: relative;
}

.phone-prefix {
    position: absolute;
    left: 16px;
    top: 10px;
    color: var(--primary);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-size: 15px;
    line-height: 15px;
    box-sizing: border-box;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(126, 34, 123, 0.1);
}

.phone-input {
    padding-left: 40px;
}

.form-hint {
    font-size: 12px;
    color: var(--dark-gray);
    margin-top: 8px;
    line-height: 1.5;
}

.form-error {
    font-size: 12px;
    color: var(--error);
    margin-top: 8px;
    margin-bottom: 8px;
    display: none;
    line-height: 120%;
}

.error-icon {
    display: inline-block;
    margin-right: 4px;
    font-size: 14px;
}

.form-button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 14px;
    width: 100%;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(126, 34, 123, 0.2);
}

.form-button:hover {
    background-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(126, 34, 123, 0.3);
}

.form-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-footer {
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
    color: var(--dark-gray);
    line-height: 12px;
}

.form-footer .resend-code {
    font-size: 12px;
}

.form-footer a {
    color: var(--primary);
    font-size: 12px;
    text-decoration: none;
    line-height: 12px;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Email autocomplete dropdown */
.email-suggestions {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
    background-color: var(--white);
    border: 1px solid var(--gray);
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.email-suggestion {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.email-suggestion:hover {
    background-color: var(--light-bg);
}

/* Код подтверждения стили */
.code-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 20px;
}

.code-input {
    width: 40px;
    height: 48px;
    text-align: center;
    font-size: 18px !important;
    font-weight: bold;
    border: 1px solid var(--gray) !important;
    border-radius: 8px !important;
    transition: all 0.3s;
    padding: 0 !important;
}

.code-input:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(126, 34, 123, 0.1);
}

.code-input.error {
    border-color: var(--error);
}

.resend-code {
    color: var(--primary);
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
}

.resend-code:hover {
    text-decoration: underline;
}

.resend-code:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.resend-code:disabled:hover {
    text-decoration: none;
}

.back-button {
    color: var(--dark-gray);
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.back-button:hover {
    color: var(--primary);
}

.back-icon {
    margin-right: 6px;
}

.code-timer {
    margin-top: 6px;
    font-weight: 500;
    color: #555;
}
