/* =========================================================
   DAINIK - ACCOUNT STYLES
   =========================================================
   Includes:
   1. Login
   2. Register
   3. Lost Password
   4. WooCommerce My Account
   5. Orders
   6. Addresses
   7. Account Details
   8. Responsive Design
   ========================================================= */


/* =========================================================
   GLOBAL ACCOUNT PAGE
   ========================================================= */

body.woocommerce-account {
    background: #f7f8fa;
}


/* =========================================================
   LOGIN / REGISTER
   ========================================================= */

.dainik-auth-page {
    width: 100%;
    max-width: 520px;

    margin: 45px auto;

    padding: 0 20px;

    box-sizing: border-box;
}


.dainik-auth-card {
    width: 100%;

    padding: 38px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   AUTH HEADER
   ========================================================= */

.dainik-auth-header {
    text-align: center;

    margin-bottom: 30px;
}


.dainik-auth-header h1 {
    margin: 0 0 8px;

    color: #102a43;

    font-size: 30px;

    font-weight: 700;

    line-height: 1.25;
}


.dainik-auth-header p {
    margin: 0;

    color: #6b7280;

    font-size: 15px;

    line-height: 1.6;
}


/* =========================================================
   AUTH FORM
   ========================================================= */

.dainik-auth-form {
    width: 100%;
}


.dainik-auth-form form {
    width: 100%;

    margin: 0 !important;

    padding: 0 !important;
}


.dainik-auth-form .form-row {
    width: 100% !important;

    margin: 0 0 18px !important;

    padding: 0 !important;

    float: none !important;

    box-sizing: border-box;
}


/* =========================================================
   AUTH LABELS
   ========================================================= */

.dainik-auth-form label {
    display: block;

    margin-bottom: 7px;

    color: #243b53;

    font-size: 14px;

    font-weight: 600;
}


.dainik-auth-form label .required {
    color: #d62828;
}


/* =========================================================
   AUTH INPUTS
   ========================================================= */

.dainik-auth-form input.input-text {
    display: block;

    width: 100% !important;

    min-height: 50px;

    padding: 12px 14px;

    box-sizing: border-box;

    border: 1px solid #d5d9de !important;

    border-radius: 8px !important;

    background: #ffffff;

    color: #102a43;

    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.dainik-auth-form input.input-text:hover {
    border-color: #b8bec5 !important;
}


.dainik-auth-form input.input-text:focus {
    outline: none !important;

    border-color: #d62828 !important;

    box-shadow:
        0 0 0 3px rgba(214, 40, 40, 0.10) !important;
}


/* =========================================================
   AUTH BUTTON
   ========================================================= */

.dainik-auth-form button.button {
    width: 100% !important;

    min-height: 50px;

    margin-top: 5px;

    padding: 12px 20px;

    border: none !important;

    border-radius: 8px !important;

    background: #d62828 !important;

    color: #ffffff !important;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.dainik-auth-form button.button:hover {
    background: #b91c1c !important;

    transform: translateY(-1px);

    box-shadow:
        0 5px 15px rgba(214, 40, 40, 0.18);
}


/* =========================================================
   REMEMBER ME
   ========================================================= */

.dainik-auth-form
.woocommerce-form-login__rememberme {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 15px;

    color: #4b5563;

    font-size: 14px;
}


.dainik-auth-form
.woocommerce-form-login__rememberme input {
    width: auto !important;

    min-height: auto !important;
}


/* =========================================================
   LOST PASSWORD LINK
   ========================================================= */

.dainik-auth-form
.woocommerce-LostPassword {
    margin: 15px 0 0 !important;

    text-align: center;
}


.dainik-auth-form
.woocommerce-LostPassword a {
    color: #d62828;

    font-size: 14px;

    text-decoration: none;
}


.dainik-auth-form
.woocommerce-LostPassword a:hover {
    text-decoration: underline;
}


/* =========================================================
   LOGIN / REGISTER SWITCH
   ========================================================= */

.dainik-auth-switch {
    margin-top: 28px;

    padding-top: 22px;

    border-top: 1px solid #eeeeee;

    text-align: center;

    color: #6b7280;

    font-size: 14px;
}


.dainik-auth-switch a {
    margin-left: 5px;

    color: #d62828;

    font-weight: 600;

    text-decoration: none;
}


.dainik-auth-switch a:hover {
    text-decoration: underline;
}


/* =========================================================
   REGISTER
   ========================================================= */

.dainik-register-page
.dainik-auth-form {
    width: 100%;
}


.dainik-register-page
.dainik-auth-form
.form-row {
    width: 100% !important;
}


.dainik-register-page
.dainik-auth-form
input.input-text {
    display: block;

    width: 100% !important;
}


.dainik-password-notice {
    margin: 5px 0 22px !important;

    color: #6b7280;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   REGISTER PRIVACY TEXT
   ========================================================= */

.dainik-register-page
.woocommerce-privacy-policy-text {
    margin: 15px 0 !important;

    color: #6b7280;

    font-size: 13px;

    line-height: 1.6;
}


.dainik-register-page
.woocommerce-privacy-policy-text a {
    color: #d62828;
}


/* =========================================================
   LOST PASSWORD PAGE
   ========================================================= */

body.woocommerce-account .entry-header {
    max-width: 1180px;

    margin: 40px auto 20px;

    padding: 0 20px;
}


body.woocommerce-account
.entry-header .entry-title {
    margin: 0;

    color: #102a43 !important;

    font-size: 36px !important;

    font-weight: 700;

    line-height: 1.2;
}


/* Lost password wrapper */

body.woocommerce-account
.woocommerce form.woocommerce-ResetPassword {
    width: 100%;

    max-width: 650px;

    margin: 0 auto 60px;

    padding: 32px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #e3e6ea;

    border-radius: 14px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.05);
}


body.woocommerce-account
.woocommerce form.woocommerce-ResetPassword
> p:first-child {
    margin: 0 0 25px;

    color: #52616b;

    font-size: 15px;

    line-height: 1.6;
}


body.woocommerce-account
.woocommerce form.woocommerce-ResetPassword
.woocommerce-form-row {
    width: 100% !important;

    max-width: 100% !important;

    margin: 0 0 20px !important;
}


body.woocommerce-account
.woocommerce form.woocommerce-ResetPassword
label {
    display: block;

    margin-bottom: 7px;

    color: #243b53;

    font-size: 14px;

    font-weight: 600;
}


body.woocommerce-account
.woocommerce form.woocommerce-ResetPassword
input.input-text {
    display: block;

    width: 100% !important;

    height: 50px;

    padding: 10px 14px;

    box-sizing: border-box;

    border: 1px solid #d5d9de !important;

    border-radius: 8px !important;

    background: #ffffff;

    color: #102a43;

    font-size: 15px;
}


body.woocommerce-account
.woocommerce form.woocommerce-ResetPassword
input.input-text:focus {
    outline: none !important;

    border-color: #d62828 !important;

    box-shadow:
        0 0 0 3px rgba(214, 40, 40, 0.10) !important;
}


body.woocommerce-account
.woocommerce form.woocommerce-ResetPassword
button.woocommerce-Button {
    min-width: 180px;

    min-height: 48px;

    padding: 0 25px;

    border: none !important;

    border-radius: 8px !important;

    background: #d62828 !important;

    color: #ffffff !important;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;
}


body.woocommerce-account
.woocommerce form.woocommerce-ResetPassword
button.woocommerce-Button:hover {
    background: #b91c1c !important;

    transform: translateY(-1px);

    box-shadow:
        0 4px 12px rgba(214, 40, 40, 0.20);
}


/* =========================================================
   REGISTRATION SUCCESS MESSAGE
   ========================================================= */

.dainik-registration-success {
    display: block;
    width: 100%;
    box-sizing: border-box;

    margin: 0 0 24px;
    padding: 16px 18px;

    background: #f0fdf4;

    border: 1px solid #86efac;
    border-left: 4px solid #16a34a;

    border-radius: 6px;

    color: #166534;

    font-size: 15px;
    line-height: 1.6;
}

.dainik-registration-success strong {
    display: block;

    margin-bottom: 4px;

    font-weight: 700;
}

.dainik-registration-success p {
    margin: 0;
}

/* =========================================================
   EXISTING EMAIL POPUP
   ========================================================= */

.dainik-existing-email-popup {
    position: fixed;
    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;
}


/* Dark background */

.dainik-existing-email-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.55);

    backdrop-filter: blur(3px);
}


/* Modal */

.dainik-existing-email-modal {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 440px;

    box-sizing: border-box;

    padding: 35px 30px 30px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.20);

    text-align: center;

    animation: dainikPopupIn 0.2s ease-out;
}


/* Popup animation */

@keyframes dainikPopupIn {

    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* Close button */

.dainik-existing-email-close {
    position: absolute;

    top: 12px;
    right: 14px;

    width: 34px;
    height: 34px;

    padding: 0;

    border: none;

    background: transparent;

    color: #666666;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;
}


.dainik-existing-email-close:hover {
    color: #111111;
}


/* Icon */

.dainik-existing-email-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #fff7ed;

    border: 1px solid #fed7aa;

    color: #ea580c;

    font-size: 25px;
    font-weight: 700;
}


/* Heading */

.dainik-existing-email-modal h3 {
    margin: 0 0 10px;

    color: #111111;

    font-size: 22px;

    line-height: 1.3;
}


/* Description */

.dainik-existing-email-modal p {
    margin: 0 0 24px;

    color: #666666;

    font-size: 15px;

    line-height: 1.6;
}


/* Login button */

.dainik-existing-email-login {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 13px 20px;

    margin-bottom: 10px;

    border-radius: 6px;

    background: #111111;

    color: #ffffff !important;

    font-size: 15px;

    font-weight: 600;

    text-align: center;

    text-decoration: none !important;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.dainik-existing-email-login:hover {
    background: #333333;

    color: #ffffff !important;

    transform: translateY(-1px);
}


/* Stay button */

.dainik-existing-email-stay {
    display: block;

    width: 100%;

    padding: 11px 20px;

    border: none;

    background: transparent;

    color: #666666;

    font-size: 14px;

    cursor: pointer;
}


.dainik-existing-email-stay:hover {
    color: #111111;
}


/* Prevent background scrolling */

body.dainik-popup-open {
    overflow: hidden;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .dainik-existing-email-popup {
        padding: 16px;
    }

    .dainik-existing-email-modal {

        max-width: 100%;

        padding:
            32px
            22px
            24px;

        border-radius: 10px;
    }

    .dainik-existing-email-modal h3 {
        font-size: 20px;
    }

    .dainik-existing-email-modal p {
        font-size: 14px;
    }

}