.auth-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 35px;
}

.auth-tab {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: #f5d6c6;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab:hover {
    background: #f0c4ae;
}

.auth-tab.active {
    background: #e8a888;
    color: #fff;
}

.auth-form {
    display: none;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.form-group label span {
    color: #e85a4f;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f5d6c6;
    border-radius: 50px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
}

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

.form-input:focus {
    outline: none;
    border-color: #e8a888;
    box-shadow: 0 0 0 4px rgba(232, 168, 136, 0.15);
}

.form-input.error {
    border-color: #e85a4f;
}

.form-input.success {
    border-color: #4ade80;
}

.form-error {
    color: #e85a4f;
    font-size: 12px;
    margin-top: 6px;
    padding-left: 18px;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    transition: color 0.2s;
    padding: 0;
}

.password-toggle:hover {
    color: #e8a888;
}

.password-requirements {
    margin-top: 10px;
    padding-left: 18px;
}

.password-requirements li {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.password-requirements li::before {
    content: '○';
    font-size: 8px;
}

.password-requirements li.valid {
    color: #4ade80;
}

.password-requirements li.valid::before {
    content: '●';
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: #e8a888;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-checkbox label {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
}

.form-checkbox label a {
    color: #e8a888;
    text-decoration: none;
    font-weight: 500;
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.remember-me input {
    width: 18px;
    height: 18px;
    accent-color: #e8a888;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: #e8a888;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    border: none;
    background: linear-gradient(135deg, #f0b89a 0%, #e8a888 100%);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 168, 136, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 168, 136, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error/Success alerts */
.alert {
    padding: 14px 18px;
    border-radius: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.alert.error {
    background: rgba(232, 90, 79, 0.1);
    border: 1px solid #e85a4f;
    color: #e85a4f;
}

.alert.success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid #4ade80;
    color: #2d8a4e;
}

.alert.show {
    display: block;
}

/* Success message after registration */
.success-message {
    text-align: center;
    padding: 30px 20px;
}

.success-message svg {
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 16px 30px;
    border-radius: 50px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 35px 25px;
        border-radius: 25px;
    }

    .auth-tabs {
        flex-direction: column;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}