/* ============================================
   استایل صفحه ورود/ثبت نام - بازار ونوس کیش
   ============================================ */

.venus-login-page {
    max-width: 460px;
    margin: 40px auto;
    padding: 0 16px;
}

.venus-auth-wrapper {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.venus-auth-header {
    background: linear-gradient(135deg, 
        rgba(0, 180, 216, 0.85) 0%, 
        rgba(0, 119, 182, 0.85) 30%,
        rgba(0, 200, 200, 0.85) 60%,
        rgba(0, 220, 180, 0.85) 100%
    );
    padding: 18px 24px 18px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.venus-auth-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 60%
    );
    animation: headerGlow 4s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.venus-auth-logo {
    position: relative;
    z-index: 1;
    margin-bottom: 4px;
}

.venus-auth-logo img {
    height: 46px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.venus-auth-brand {
    position: relative;
    z-index: 1;
}

.venus-auth-name {
    font-size: 18px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: block;
}

.venus-auth-title {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin: 2px 0 0 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.venus-auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
    margin: 4px 20px 0;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.venus-auth-tab {
    flex: 1;
    padding: 10px 8px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Estedad', 'Vazir', sans-serif;
}

.venus-auth-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.venus-auth-tab.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.venus-auth-tab i {
    font-size: 15px;
}

.venus-auth-content {
    padding: 20px 24px 28px;
}

.venus-auth-form {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.venus-auth-group {
    margin-bottom: 14px;
}

.venus-auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.venus-auth-group.half {
    margin-bottom: 0;
}

.venus-auth-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.venus-auth-group label i {
    color: rgba(255, 255, 255, 0.9);
    width: 18px;
}

.venus-auth-group input:not(.otp-input) {
    width: 100%;
    padding: 11px 14px;
    padding-left: 44px !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    font-size: 14px;
    font-family: 'Estedad', 'Vazir', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: #ffffff;
    outline: none;
}

.venus-auth-group input:not(.otp-input)::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.venus-auth-group input:not(.otp-input):focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.venus-auth-group input:not(.otp-input).error {
    border-color: rgba(255, 100, 100, 0.6);
    background: rgba(255, 100, 100, 0.15);
}

.venus-auth-error {
    color: rgba(255, 180, 180, 0.9);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.venus-auth-error.show {
    display: block;
}

.venus-pass-wrapper {
    position: relative;
}

.venus-pass-wrapper input {
    padding-left: 44px !important;
}

.venus-pass-toggle {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.3s ease;
}

.venus-pass-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
}

.venus-pass-meter {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    margin-top: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.venus-pass-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.venus-auth-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    font-family: 'Estedad', 'Vazir', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, 
        rgba(0, 200, 200, 0.8) 0%, 
        rgba(0, 150, 220, 0.8) 50%,
        rgba(0, 100, 200, 0.8) 100%
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.venus-auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    transition: left 0.6s ease;
}

.venus-auth-btn:hover::before {
    left: 100%;
}

.venus-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 150, 220, 0.3);
}

.venus-auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.venus-auth-btn i {
    font-size: 16px;
}

.venus-auth-links {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
}

.venus-auth-links a {
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.venus-auth-links a:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

.venus-auth-message {
    padding: 10px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-size: 14px;
    display: none;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.venus-auth-message.success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
    display: block;
}

.venus-auth-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

.venus-auth-message.info {
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.3);
    display: block;
}

.otp-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 14px 0 12px;
    direction: ltr;
}

.otp-input {
    width: 48px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #ffffff;
    font-family: 'Estedad', 'Vazir', sans-serif;
    padding: 0;
}

.otp-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
    transform: scale(1.03);
}

.otp-input.success {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.2);
}

.otp-input.error {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.2);
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.otp-timer {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 6px 0;
}

.otp-timer i {
    color: rgba(255, 255, 255, 0.8);
}

.otp-resend-btn {
    display: block;
    width: 100%;
    padding: 9px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Estedad', 'Vazir', sans-serif;
    backdrop-filter: blur(10px);
}

.otp-resend-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

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

.otp-mobile-info {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
}

.otp-status {
    text-align: center;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 12px;
    margin-top: 10px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.otp-status.success {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.otp-status.error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.recover-info {
    text-align: center;
    margin-bottom: 16px;
}

.recover-info i {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: 50%;
}

.recover-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}

body {
    background: linear-gradient(135deg, 
        #0c0e1a 0%,
        #0f2b45 20%,
        #0a4a5e 40%,
        #0d6b7a 60%,
        #1a8a8a 80%,
        #2ea8a0 100%
    );
    min-height: 100vh;
}

@media (max-width: 480px) {
    .venus-login-page {
        margin: 20px auto;
        padding: 0 10px;
    }
    .venus-auth-content {
        padding: 16px 16px 20px;
    }
    .venus-auth-header {
        padding: 14px 16px 14px;
    }
    .venus-auth-name {
        font-size: 16px;
    }
    .venus-auth-title {
        font-size: 13px;
    }
    .venus-auth-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .otp-input {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }
    .otp-container {
        gap: 6px;
    }
    .venus-auth-tab {
        font-size: 13px;
        padding: 8px 6px;
    }
    .venus-auth-tabs {
        margin: 4px 12px 0;
    }
    .venus-auth-logo img {
        height: 38px;
    }
}