/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Peyda Font Face Declarations */
@font-face {
    font-family: 'Peyda';
    src: url('../fonts/PeydaWeb-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/PeydaWeb-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/PeydaWeb-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/PeydaWeb-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Montserrat Font Face Declarations */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Peyda', sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Image */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-image {
    position: absolute;
    height: 70%;
    left: 5%;
    top: 19.7%;
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 10;
}

/* Header Styles */
.header {
    position: relative;
    margin: 24px;
    z-index: 10;
    height: 12vh;
    direction: ltr;
}

.header-content {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 8.6px 25.8px -6.45px rgba(0, 0, 0, 0.16), 0px 0px 1.075px 0px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 64px;
    height: 96px;
}

.logo-container {
    width: 86px;
    height: 48px;
    position: relative;
    overflow: hidden;
}

.logo {
    position: absolute;
    /* height: 302.93%; */
    /* left: -34.52%; */
    /* max-width: none; */
    /* top: -101.71%; */
    width: 100.24%;
    object-fit: contain;
}



.header-title h1 {
    font-family: 'Peyda', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21.5px;
    color: rgba(0, 0, 0, 0.8);
    text-align: right;
    white-space: nowrap;
}

/* Login Wrapper */
.login-wrapper {
    position: relative;
    width: 100%;
    height: 85vh;
    display: flex;
    z-index: 10;
}

/* Login Section */
.login-section {
    position: relative;
    width: 50%;
    display: flex;
    z-index: 10;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Login Content */
.login-content {
    position: relative;
    width: 50%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;    
    align-items: center;
}

/* Login Container */
.login-container {
    position: relative;
    z-index: 10;
    width: fit-content;
}

/* Login Modal */
.login-modal {
    width: 324px;
    min-height: 280px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    box-shadow: 0px 8.6px 25.8px -6.45px rgba(0, 0, 0, 0.16), 0px 0px 1.075px 0px rgba(0, 0, 0, 0.4);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* Login Title */
.login-title-container {
    width: 276px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.login-title {
    font-family: 'Peyda', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.8);
    text-align: right;
    margin: 0;
}

/* Form Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 276px;
}

.form-fields[style*="display: none"] {
    display: none !important;
}

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

.input-label {
    font-family: 'Peyda', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 17px;
    color: #212934;
    text-align: right;
    white-space: nowrap;
}

.input-container {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    height: 38px;
    background-color: #ffffff;
    border: 1px solid #d5dde5;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 17px;
    color: #212934;
    text-align: right;
    outline: none;
    box-shadow: inset 0px 2px 2px 0px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: #d5dde5;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 17px;
}

.form-input:focus {
    border-color: #ee6625;
    color: #212934;
}

/* Error and Success Messages */
.error-message {
    display: block;
    color: #e53935;
    margin-top: 0.25rem;
    font-size: 11px;
    font-family: 'Peyda', sans-serif;
    text-align: right;
}

.success-message {
    display: block;
    color: #2e7d32;
    margin-top: 0.25rem;
    font-size: 11px;
    font-family: 'Peyda', sans-serif;
    text-align: right;
}

.warning-message {
    display: block;
    color: #f57c00;
    margin-top: 0.25rem;
    font-size: 11px;
    font-family: 'Peyda', sans-serif;
    text-align: right;
}

/* Delivery Info */
.delivery-info {
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 11px;
    text-align: center;
    font-family: 'Peyda', sans-serif;
}

.delivery-info.email {
    background-color: #fff3e0;
    border: 1px solid #ff9800;
    color: #e65100;
}

.delivery-info.sms {
    background-color: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

/* OTP Container */
.otp-container {
    position: relative;
}

.resend-container {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    align-items: center;
}

.resend-button {
    background: none;
    border: none;
    color: #212934;
    cursor: pointer;
    font-family: 'Peyda', sans-serif;
    text-decoration: underline;
    font-size: 11px;
    padding: 0;
}

.resend-button:hover {
    color: #ee6625;
}

.resend-button:disabled {
    color: #d5dde5;
    cursor: not-allowed;
    text-decoration: none;
}

#timer {
    font-family: 'Peyda', sans-serif;
    font-size: 11px;
    color: #212934;
}

/* Button Container */
.button-container {
    margin-top: auto;
    width: 276px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-button {
    width: 100%;
    height: 32px;
    background-color: #ee6625;
    border: none;
    border-radius: 4px;
    padding: 7px 12px;
    font-family: 'Peyda', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.login-button:hover {
    background-color: #d55a1f;
}

.login-button:active {
    background-color: #c04e1a;
}

.login-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.login-button.secondary {
    background-color: transparent;
    color: #212934;
    border: 1px solid #d5dde5;
}

.login-button.secondary:hover {
    background-color: #f5f5f5;
}

/* Responsive Design */
/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .header {
        margin: 20px;
    }
    
    .header-content {
        padding: 20px 48px;
        height: auto;
        min-height: 80px;
    }
    
    .logo-container {
        width: 72px;
        height: 40px;
    }
    
    .header-title h1 {
        font-size: 15px;
        line-height: 20px;
    }
    
    .login-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
    
    .login-section {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .login-content {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .login-container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .login-modal {
        width: 100%;
        max-width: 420px;
        padding: 28px;
        margin: 0 auto;
    }
    
    .background-image {
        left: 0;
        top: 15%;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
    .background-container {
        top: 0px;
    }

    .form-fields {
        width: 100%;
    }
    
    .login-title-container {
        width: 100%;
    }
    
    .button-container {
        width: 100%;
    }
}

/* Mobile Styles (up to 768px) */
@media (max-width: 768px) {
    body {
        background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    }
    
    .background-image {
        left: 0;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .content-wrapper {
        display: flex;
        flex-direction: column;
    }
    
    .header {
        max-width: calc(100% - 32px);
        margin: 16px;
        z-index: 12;
    }
    
    .header-content {
        padding: 16px 20px;
        height: auto;
        min-height: 72px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
        border-radius: 12px;
    }
    
    .logo-container {
        width: 64px;
        height: 36px;
        flex-shrink: 0;
    }
    
    .header-title {
        flex: 1;
        min-width: 0;
    }
    
    .header-title h1 {
        font-size: 13px;
        line-height: 18px;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .login-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
    
    .login-section {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .login-content {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .login-container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .login-modal {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 28px 24px;
        border-radius: 16px;
        box-shadow: 0px 10px 30px -8px rgba(0, 0, 0, 0.2), 0px 0px 2px 0px rgba(0, 0, 0, 0.1);
    }
    
    .modal-content {
        gap: 24px;
        width: 100%;
    }
    
    .login-title-container {
        width: 100%;
        height: auto;
        margin-bottom: 4px;
    }
    
    .login-title {
        font-size: 20px;
        line-height: 28px;
        text-align: center;
    }
    
    .form-fields {
        width: 100%;
        gap: 16px;
    }
    
    .input-group {
        gap: 8px;
    }
    
    .input-label {
        font-size: 13px;
        line-height: 18px;
        font-weight: 500;
    }
    
    .form-input {
        height: 44px;
        padding: 12px 16px;
        font-size: 16px;
        line-height: 22px;
        border-radius: 10px;
        border-width: 1.5px;
    }
    
    .form-input::placeholder {
        font-size: 16px;
        line-height: 22px;
    }
    
    .form-input:focus {
        border-width: 2px;
        box-shadow: 0px 0px 0px 4px rgba(238, 102, 37, 0.1);
    }
    
    .button-container {
        width: 100%;
        gap: 12px;
        margin-top: 8px;
    }
    
    .login-button {
        height: 48px;
        border-radius: 10px;
        font-size: 16px;
        line-height: 22px;
        font-weight: 600;
        padding: 12px 24px;
        transition: all 0.2s ease;
    }
    
    .login-button:active {
        transform: scale(0.98);
    }
    
    .delivery-info {
        padding: 16px;
        margin-bottom: 16px;
        font-size: 12px;
        line-height: 18px;
        border-radius: 10px;
        border-width: 1.5px;
    }
    
    .resend-container {
        margin-top: 12px;
        padding: 0 4px;
    }
    
    .resend-button {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    #timer {
        font-size: 12px;
        font-weight: 500;
    }
    
    .error-message,
    .success-message,
    .warning-message {
        font-size: 12px;
        line-height: 16px;
        margin-top: 6px;
    }
    .background-container {
        top: -30px;
    }

}

/* Small Mobile Styles (up to 480px) */
@media (max-width: 480px) {
    .header {
        max-width: calc(100% - 32px);
        margin: 16px;
        z-index: 12;
    }
    
    .header-content {
        padding: 14px 16px;
        min-height: 64px;
        gap: 10px;
    }
    
    .logo-container {
        width: 56px;
        height: 32px;
    }
    
    .header-title h1 {
        font-size: 11px;
        line-height: 16px;
    }
    
    .login-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
    
    .login-section {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .login-content {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .login-container {
        padding: 0 12px;
    }
    
    .login-modal {
        width: 100%;
        max-width: 100%;
        padding: 24px 20px;
        border-radius: 14px;
    }
    
    .modal-content {
        gap: 20px;
    }
    
    .login-title {
        font-size: 18px;
        line-height: 24px;
    }
    
    .form-fields {
        gap: 14px;
    }
    
    .input-label {
        font-size: 12px;
        line-height: 16px;
    }
    
    .form-input {
        height: 42px;
        padding: 10px 14px;
        font-size: 15px;
        line-height: 20px;
    }
    
    .form-input::placeholder {
        font-size: 15px;
        line-height: 20px;
    }
    
    .button-container {
        gap: 10px;
    }
    
    .login-button {
        height: 44px;
        font-size: 15px;
        line-height: 20px;
        padding: 10px 20px;
    }
    
    .delivery-info {
        padding: 14px;
        margin-bottom: 14px;
        font-size: 11px;
        line-height: 16px;
    }
    
    .resend-button {
        font-size: 11px;
    }
    
    #timer {
        font-size: 11px;
    }
    
    .error-message,
    .success-message,
    .warning-message {
        font-size: 11px;
        line-height: 15px;
    }
    .background-container {
        top: -40px;
    }

}

/* Extra Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .header {
        margin: 8px;
    }
    
    .header-content {
        padding: 12px 14px;
        min-height: 60px;
    }
    
    .logo-container {
        width: 48px;
        height: 28px;
    }
    
    .header-title h1 {
        font-size: 10px;
        line-height: 14px;
    }
    
    .login-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
    
    .login-section {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .login-content {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .login-container {
        padding: 0 8px;
    }
    
    .login-modal {
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .modal-content {
        gap: 18px;
    }
    
    .form-input {
        height: 40px;
        padding: 9px 12px;
    }
    
    .login-button {
        height: 42px;
        font-size: 14px;
    }

    .background-container {
        top: -60px;
    }
}

