/* ============================================
   Lost Password Container - Full page centered layout
   ============================================ */

.lost-password-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Decorative background shapes - SVG style */
.lost-password-container::before {
    content: '';
    position: fixed;
    top: -100px;
    left: -100px;
    width: 608px;
    height: 371px;
    background-image: url('data:image/svg+xml;utf8,<svg width="608" height="371" viewBox="0 0 608 371" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M607.671 66.6389V-82.3568H485.433V66.6389C485.433 166.908 404.105 248.236 303.836 248.236C203.566 248.236 122.238 166.908 122.238 66.6389V-209.595C122.238 -277.121 67.5269 -331.833 0 -331.833V66.7093C0 234.506 136.04 370.545 303.836 370.545C471.632 370.545 607.671 234.506 607.671 66.7093V66.6389Z" fill="url(%23paint0_linear_53_4209)"/><defs><linearGradient id="paint0_linear_53_4209" x1="1002.48" y1="987.722" x2="-126.534" y2="-540.399" gradientUnits="userSpaceOnUse"><stop stop-color="%235931F8"/><stop offset="0.5" stop-color="%234123FD"/><stop offset="1" stop-color="%2311BEFD"/></linearGradient></defs></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    pointer-events: none;
    opacity: 0.1;
}

.lost-password-container::after {
    content: '';
    position: fixed;
    bottom: -80px;
    right: -500px;
    width: 617px;
    height: 261px;
    background-image: url('data:image/svg+xml;utf8,<svg width="617" height="261" viewBox="0 0 617 261" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M616.581 404.314V253.134H492.55V404.314C492.55 506.054 410.03 588.574 308.29 588.574C206.551 588.574 124.031 506.054 124.031 404.314V124.031C124.031 55.5137 68.5169 0 0 0V404.386C0 574.642 138.034 712.676 308.29 712.676C478.547 712.676 616.581 574.642 616.581 404.386V404.314Z" fill="url(%23paint0_linear_53_4222)"/><defs><linearGradient id="paint0_linear_53_4222" x1="1017.18" y1="1338.9" x2="-128.389" y2="-211.624" gradientUnits="userSpaceOnUse"><stop stop-color="%235931F8"/><stop offset="0.5" stop-color="%234123FD"/><stop offset="1" stop-color="%2311BEFD"/></linearGradient></defs></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    pointer-events: none;
    opacity: 0.08;
}

/* Background gradient */
.lost-password-container {
    background-image: linear-gradient(135deg, #F5F3FF 0%, #F3F0FF 50%, #EEF2FF 100%);
    background-size: 100% 100%;
    background-position: 0 0;
    background-repeat: repeat;
    background-attachment: fixed;
}

/* Dark Mode Support */
body[data-theme-style="dark"] .lost-password-container {
    background-image: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-size: 100% 100%;
    background-position: 0 0;
    background-repeat: repeat;
    background-attachment: fixed;
}

body[data-theme-style="dark"] .lost-password-container::before {
    opacity: 0.05;
    filter: brightness(0.6);
}

body[data-theme-style="dark"] .lost-password-container::after {
    opacity: 0.04;
    filter: brightness(0.6);
}

/* Ensure content is above decorative elements */
.lost-password-container > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   Lost Password Wrapper
   ============================================ */

.lost-password-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    gap: 30px;
}

 html[dir="rtl"] .lost-password-wrapper{
        margin-left: 10%;
 }

.lost-password-logo {
    width: 140px;
    height: 132px;
    flex-shrink: 0;
}
 
 html[dir="rtl"]  .lost-password-logo  {
        margin-right: 27%;
    }


/* ============================================
   Lost Password Content
   ============================================ */

.lost-password-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
}

/* ============================================
   Lost Password Header
   ============================================ */

.lost-password-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0;
    gap: 20px;
}

.lost-password-title {
    width: 100%;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0;
    color: #000;
    font-family: Tajawal, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
    font-size: 35px;
    font-weight: 700;
    margin: 0;
}
 
 html[dir="rtl"] .lost-password-title {
            margin-right: 29%;
         }

body[data-theme-style="dark"] .lost-password-title {
    color: #FFFFFF;
}

/* ============================================
   Lost Password Card
   ============================================ */

.lost-password-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 145%;
    margin-left: -24%;
    margin-top: 10%;
    border-radius: 16px;
    background: #ffffff;
    padding: 36px;
    gap: 16px;
    backdrop-filter: blur(10px);
    border: 2px solid #d8b4ff;
}

body[data-theme-style="dark"] .lost-password-card {
    background: #1e293b;
    border: 2px solid #3d5a80;
}

/* ============================================
   Form Fields
   ============================================ */

.lost-password-field-label {
    width: 100%;
    line-height: 1.3;
    letter-spacing: 0;
    color: #000;
    font-family: Tajawal, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

body[data-theme-style="dark"] .lost-password-field-label {
    color: #FFFFFF;
}

.lost-password-input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
}

.lost-password-input-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 8px 0 #5931f81a;
    background: #fff;
    padding: 16px;
    height: 56px;
    gap: 10px;
    transition: box-shadow 0.3s ease, border 0.3s ease;
    border: 2px solid transparent;
    box-sizing: border-box;
}

body[data-theme-style="dark"] .lost-password-input-box {
    background: #000000;
    box-shadow: 0 0 8px 0 #3d5a8033;
}

.lost-password-input-box:hover {
    border: 2px solid #9b6dd4;
    box-shadow: 0 0 12px 0 #9b6dd4;
}

body[data-theme-style="dark"] .lost-password-input-box:hover {
    border: 2px solid #5BA3FF;
    box-shadow: 0 0 12px 0 #5BA3FF;
}

.lost-password-input-box:focus-within {
    border: 2px solid #3883f4;
    box-shadow: 0 0 16px 0 #3883f4;
}

body[data-theme-style="dark"] .lost-password-input-box:focus-within {
    border: 2px solid #5BA3FF;
    box-shadow: 0 0 16px 0 #5BA3FF;
}

.lost-password-input-box .form-control {
    border: none;
    box-shadow: none;
    padding: 0;
    height: auto;
    font-size: 16px;
    color: #404040;
    width: 100%;
    background: transparent;
}

body[data-theme-style="dark"] .lost-password-input-box .form-control {
    background: transparent;
    color: #FFFFFF;
}

.lost-password-input-box .form-control:focus {
    outline: none;
    box-shadow: none;
}

.lost-password-input-box .form-control::placeholder {
    color: #999;
}

body[data-theme-style="dark"] .lost-password-input-box .form-control::placeholder {
    color: #666;
}

/* ============================================
   Submit Button
   ============================================ */

.lost-password-submit-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 10px;
    padding: 16px;
    height: 56px;
    overflow: hidden;
    background-image: linear-gradient(260.78deg, #6007d4cc -4.91%, #3883f4 90.16%);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
    border: none;
    box-sizing: border-box;
}

.lost-password-submit-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 #5931f833;
}

.lost-password-submit-bar:active {
    transform: translateY(0);
}

.lost-password-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.lost-password-btn:active {
    opacity: 0.5;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.lost-password-btn:focus {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.lost-password-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Footer
   ============================================ */

.lost-password-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
}

.lost-password-footer-link {
    line-height: 1.3;
    letter-spacing: 0;
    color: #404040;
    font-family: Tajawal, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

body[data-theme-style="dark"] .lost-password-footer-link {
    color: #A0A0A0;
}

.lost-password-footer-link:hover {
    color: #3883f4;
    text-decoration: underline;
}

body[data-theme-style="dark"] .lost-password-footer-link:hover {
    color: #5BA3FF;
}

.lost-password-footer-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.lost-password-footer-icon path {
    fill: #404040;
    transition: fill 0.3s ease;
}

body[data-theme-style="dark"] .lost-password-footer-icon path {
    fill: #FFFFFF;
}

/* ============================================
   Responsive Design - Tablets (768px and below)
   ============================================ */

@media (max-width: 768px) {
    .lost-password-container {
        padding: 1.5rem 1rem;
    }

    .lost-password-wrapper {
        max-width: 100%;
        gap: 20px;
       margin-left: 8%;

    }

    .lost-password-logo {
        width: 100px;
        height: 75px;
        margin-right: 5%;
    }
     html[dir="rtl"]  .lost-password-logo  {
        margin-right: 9%;
    }


    .lost-password-title {
        font-size: 24px;
            margin-top: 8%;
    }
     html[dir="rtl"]  .lost-password-title  {
        margin-right: 18%;
        margin-top: 9%;
    }


    .lost-password-card {
        padding: 24px;
        gap: 20px;
    }

    .lost-password-field-label {
        font-size: 16px;
    }

    .lost-password-input-box {
        height: 48px;
        padding: 12px;
    }

    .lost-password-input-box .form-control {
        font-size: 14px;
    }

    .lost-password-submit-bar {
        height: 48px;
        padding: 12px;
    }

    .lost-password-btn {
        font-size: 16px;
    }

    .lost-password-footer-link {
        font-size: 14px;
    }
}

/* ============================================
   Responsive Design - Mobile (480px and below)
   ============================================ */

@media (max-width: 480px) {
    .lost-password-container {
        padding: 1rem;
        min-height: auto;
    }

    .lost-password-wrapper {
        gap: 15px;
    }

    .lost-password-logo {
        width: 70px;
        height: 65px;
         margin-right: 18%;
    }
      html[dir="rtl"]  .lost-password-logo  {
        margin-right: -8%;
    }


    .lost-password-title {
        font-size: 20px;
        margin-top: 20%;
    }
  html[dir="rtl"]  .lost-password-title  {
        margin-right: 16%;
        margin-top: 27%;
    }
    .lost-password-card {
        padding: 16px;
        gap: 12px;
        border-radius: 12px;
        
    }
     html[dir="rtl"]  .lost-password-card  {
        margin-right: 2%;
        width: 115%;
       
    }

    .lost-password-field-label {
        font-size: 14px;
    }

    .lost-password-input-group {
        gap: 12px;
    }

    .lost-password-input-box {
        height: 44px;
        padding: 10px;
        border-radius: 8px;
    }

    .lost-password-input-box .form-control {
        font-size: 13px;
    }

    .lost-password-submit-bar {
        height: 44px;
        padding: 10px;
        border-radius: 8px;
        margin-top: 6px;
    }

    .lost-password-btn {
        font-size: 14px;
    }

    .lost-password-footer {
        gap: 6px;
    }

    .lost-password-footer-link {
        font-size: 12px;
    }

    .lost-password-footer-icon {
        width: 14px;
        height: 14px;
    }
}

/* ============================================
   Responsive Design - Extra Small (320px and below)
   ============================================ */

@media (max-width: 320px) {
    .lost-password-container {
        padding: 0.75rem;
    }

    .lost-password-wrapper {
        gap: 12px;
    }

    .lost-password-logo {
        width: 60px;
        height: 55px;
        margin-left: -12%;

    }
    html[dir="rtl"]  .lost-password-logo  {
      
            margin-right: -34%;
    }

    .lost-password-title {
        font-size: 18px;
        margin-top: 30%;
    }
    
    html[dir="rtl"]  .lost-password-title  {
        margin-top: 34%;
        }
    .lost-password-card {
        padding: 12px;
        gap: 10px;
          margin-left: -20%;
    }
 html[dir="rtl"]  .lost-password-card  {
       margin-right: 3%;
        width: 115%;
    }
    .lost-password-field-label {
        font-size: 13px;
    }

    .lost-password-input-group {
        gap: 10px;
    }

    .lost-password-input-box {
        height: 40px;
        padding: 8px;
    }

    .lost-password-input-box .form-control {
        font-size: 12px;
    }

    .lost-password-submit-bar {
        height: 40px;
        padding: 8px;
    }

    .lost-password-btn {
        font-size: 12px;
    }

    .lost-password-footer-link {
        font-size: 11px;
    }

    .lost-password-footer-icon {
        width: 12px;
        height: 12px;
    }
}

/* ============================================
   RTL Support (Arabic)
   ============================================ */

html[dir="rtl"] .lost-password-container::before {
    left: auto;
    right: -100px;
}

html[dir="rtl"] .lost-password-container::after {
    right: auto;
    left: -500px;
}
