/* User Authentication Styles - БЕЗ !important */

/* Container */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-wrapper {
    width: 100%;
    max-width: 500px;
}

.auth-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

/* Wholesale Info Block */
.wholesale-info-block {
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    color: #ffffff;
}

/* Wholesale Notice */
.wholesale-notice {
    background: #fff0f7;
    border-left: 4px solid #FF1493;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.wholesale-notice p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #2c3e50;
}

.wholesale-notice p:last-child {
    margin-bottom: 0;
}

.info-icon {
    margin-bottom: 16px;
}

.info-icon svg {
    color: #ffffff;
    opacity: 0.9;
}

.wholesale-info-block h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.info-description {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
}

/* Info Box */
.auth-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.auth-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.benefits-list li {
    padding: 6px 0;
    color: #34495e;
    font-size: 14px;
}

.note {
    font-size: 13px;
    color: #95a5a6;
    margin: 0;
}

.note-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
    color: #856404;
}

.note-box strong {
    color: #856404;
}

/* Form */
.auth-form {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF1493;
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.1);
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #95a5a6;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.link-secondary {
    color: #FF1493;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.link-secondary:hover {
    color: #DC143C;
}

/* Buttons */
.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
}

.btn-loader--hidden {
    display: none;
}

.btn-text--hidden {
    display: none;
}

.btn-outline {
    background: transparent;
    color: #FF1493;
    border: 2px solid #FF1493;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: #FF1493;
    color: #ffffff;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    position: relative;
    z-index: 10001;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.alert-warning {
    background: #ffe;
    color: #cc3;
    border: 1px solid #ffc;
}

/* Footer */
.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.auth-footer p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.auth-footer a {
    color: #FF1493;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #DC143C;
}

.footer-note {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 8px;
}

/* Success Page */
.success-icon {
    text-align: center;
    margin-bottom: 24px;
}

.success-icon svg {
    color: #27ae60;
}

.text-center {
    text-align: center;
}

.message-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.message-box p {
    margin: 0 0 12px 0;
    color: #2c3e50;
}

.message-box p:last-child {
    margin-bottom: 0;
}

.info-box {
    margin: 24px 0;
}

.info-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.steps-list {
    list-style: decimal;
    padding-left: 24px;
    text-align: left;
    display: inline-block;
    margin: 0 auto;
}

.steps-list li {
    padding: 8px 0;
    color: #34495e;
    font-size: 14px;
}

.help-text {
    margin: 24px 0;
}

.help-text p {
    margin: 0;
    color: #95a5a6;
    font-size: 13px;
}

/* Tablet */
@media (max-width: 768px) {
    .auth-container {
        padding: 20px 15px;
        background: #f7f9fb;
        transform: none;
    }
    
    .auth-wrapper {
        transform: none;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .auth-container {
        padding: 15px 10px;
        background: #f7f9fb;
        transform: none;
    }
    
    .auth-wrapper {
        transform: none;
    }
    
    .auth-card {
        padding: 24px 16px;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .form-group input,
    .form-group select {
        font-size: 16px;
        padding: 12px 14px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .btn-primary,
    .btn-outline {
        font-size: 15px;
        padding: 12px 20px;
    }
}

/* Password Toggle */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 48px;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 10;
}

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

.password-input-wrapper input {
    width: 100%;
    padding-right: 48px;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.eye-icon {
    display: block;
}

.eye-off-icon {
    display: none;
}

.password-toggle.active .eye-icon {
    display: none;
}

.password-toggle.active .eye-off-icon {
    display: block;
}

/* iOS Safari fixes */
@media (max-width: 576px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .form-group input[type="date"] {
        -webkit-appearance: none;
        appearance: none;
    }
    
    .password-toggle {
        width: 44px;
    }
    
    .password-toggle svg {
        width: 22px;
        height: 22px;
    }
    
    .password-input-wrapper input {
        padding-right: 44px;
    }
}

/* Відступ знизу для контенту на мобільних сторінках */
@media (max-width: 768px) {
    .auth-page main,
    .profile-page main {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

/* Verification Code Styles */
.verification-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    border-radius: 50%;
    color: #ffffff;
}

.verification-icon svg {
    stroke: currentColor;
}

.code-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
    border-left: 4px solid #667eea;
}

.code-info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.code-info p:last-child {
    margin-bottom: 0;
}

.email-display {
    font-size: 16px;
    color: #2c3e50;
    word-break: break-word;
}

.timer-text {
    font-size: 13px;
    color: #7f8c8d;
    font-style: italic;
}

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

.code-input {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
    padding: 16px 12px;
}

.code-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.resend-section {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 24px;
}

.resend-text {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #555;
}

.btn-link {
    background: none;
    border: none;
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    transition: color 0.2s;
}

.btn-link:hover {
    color: #764ba2;
}

.btn-link:disabled,
.btn-link.disabled {
    color: #95a5a6;
    cursor: not-allowed;
    text-decoration: none;
}

.timer-countdown {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #e74c3c;
    font-weight: 500;
}

.password-requirements {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.password-requirements p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #856404;
}

.password-requirements ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #856404;
}

.password-requirements li {
    margin: 4px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #11998e;
    border-radius: 50%;
    color: #ffffff;
}

.success-icon svg {
    stroke: currentColor;
}

.message-box {
    background: #d4edda;
    border-left: 4px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.message-box p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #155724;
    line-height: 1.6;
}

.message-box p:last-child {
    margin-bottom: 0;
}

.info-box {
    background: #fff0f6;
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.info-box h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: var(--color-primary-dark);
}

.steps-list {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: var(--color-primary-dark);
}

.steps-list li {
    margin: 8px 0;
}

.help-text {
    text-align: center;
    margin: 20px 0;
}

.help-text p {
    margin: 0;
    font-size: 13px;
    color: #7f8c8d;
}

@media (max-width: 576px) {
    .code-input {
        font-size: 20px;
        letter-spacing: 6px;
        padding: 14px 10px;
    }
    
    .verification-icon {
        width: 50px;
        height: 50px;
    }
    
    .verification-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .success-icon {
        width: 70px;
        height: 70px;
    }
    
    .success-icon svg {
        width: 40px;
        height: 40px;
    }
}

/* Phone Input Styles */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

.phone-prefix {
    padding: 12px 12px 12px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1;
}

.phone-input {
    border-radius: 0 8px 8px 0 !important;
    flex: 1;
}

.phone-input-wrapper .form-control {
    border-radius: 0 8px 8px 0 !important;
}

