/* ============================================================
   AUTH PAGE STYLES - Persian/Islamic Design
   ============================================================ */

   :root {
    --primary-color: #38B2AC;
    --primary-light: #4FD1C5;
    --primary-dark: #2C7A7B;
    --secondary-color: #319795;
    --accent-gold: #D4AF37;
    --text-dark: #2D3748;
    --text-light: #718096;
    --bg-white: #FFFFFF;
    --bg-light: #F7FAFC;
    --border-color: #E2E8F0;
    --shadow: 0 10px 40px rgba(56, 178, 172, 0.1);
}


@font-face {
    font-family: "Peyda-main";
    src: url("../fonts/peydabold.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  
  @font-face {
    font-family: "vazir-main";
    src: url("../fonts/vazir.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: "lalezar-main";
    src: url("../fonts/lalezar.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
 
  
* {
    font-family:"Peyda-main" ;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Islamic Pattern Background */
.islamic-pattern-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.03) 35px, rgba(255,255,255,.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,.03) 35px, rgba(255,255,255,.03) 70px);
    opacity: 0.5;
    z-index: 0;
}

/* Auth Container */
.auth-container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    width: 100%;
}

/* Auth Box */
.auth-box {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.auth-box::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
}

.logo-section h1 {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 800;
}

.auth-subtitle {
    color: var(--text-light);
    font-size: 14px;
}

/* Form Styles */
.auth-form {
    display: none;
    position: relative;
    z-index: 1;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-title {
    font-size: 24px;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Form Ornaments */
.form-ornament {
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%
    );
    margin: 20px 0;
    position: relative;
}

.form-ornament::before,
.form-ornament::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 12px;
}

.form-ornament::before {
    right: -5px;
}

.form-ornament::after {
    left: -5px;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    right: 15px;
    font-size: 20px;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family:"Peyda-main" ;
        font-size: 14px;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(56, 178, 172, 0.1);
}

.toggle-password {
    position: absolute;
    left: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.toggle-password:hover {
    opacity: 1;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-bar.weak {
    width: 33%;
    background: #F56565;
}

.strength-bar.medium {
    width: 66%;
    background: #ED8936;
}

.strength-bar.strong {
    width: 100%;
    background: #48BB78;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    color: var(--text-light);
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    margin-left: 8px;
    position: relative;
    transition: all 0.3s;
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input:checked ~ .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.forgot-link,
.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover,
.terms-link:hover {
    color: var(--primary-dark);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 178, 172, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-ornament {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.btn-ornament::before {
    content: '✦';
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.form-footer a:hover {
    color: var(--primary-dark);
}

/* OTP Form */
.otp-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 14px;
}

#otp-phone-display {
    color: var(--primary-color);
    font-weight: 600;
}

.otp-inputs {
    direction: ltr;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(56, 178, 172, 0.1);
}

.otp-timer {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 13px;
}

#timer {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-resend {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
}

.btn-resend:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.btn-resend:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-box {
        padding: 25px;
    }

    .logo-section h1 {
        font-size: 26px;
    }

    .form-title {
        font-size: 20px;
    }

    .otp-input {
        width: 45px;
        height: 55px;
        font-size: 20px;
    }
}
