:root {
    --fcl-purple: #003366;
    --fcl-purple-dark: #00264d;
    --fcl-text: #171923;
    --fcl-muted: #6c7280;
    --fcl-border: #dfe2e8;
    --fcl-bg: #f4f5f7;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.fcl-standalone {
    margin: 0;
    direction: rtl;
    background:
        radial-gradient(circle at 80% 0%, rgba(0,51,102,.07), transparent 30%),
        var(--fcl-bg);
    color: var(--fcl-text);
    font-family: "Vazirmatn", "IRANSansX", "IRANSans", Tahoma, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.fcl-shell {
    min-height: 100vh;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.fcl-card {
    width: min(1320px, 100%);
    min-height: 820px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    direction: ltr;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(20, 21, 29, .12);
    border: 1px solid rgba(27, 31, 43, .06);
}

.fcl-visual {
    min-height: 820px;
    direction: rtl;
    overflow: hidden;
    background: #3a302a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fcl-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.fcl-panel {
    direction: rtl;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 56px 72px 42px;
    background: #fff;
}

.fcl-content { width: min(500px, 100%); }

.fcl-brand {
    width: max-content;
    margin: 0 auto 36px;
    display: flex;
    direction: ltr;
    align-items: center;
    gap: 10px;
    color: #151722;
    text-decoration: none;
    font-size: 29px;
    letter-spacing: -1px;
}
.fcl-brand:hover { color: #151722; }
.fcl-brand b { font-weight: 800; }
.fcl-camera { width: 42px; height: 42px; display: inline-flex; }
.fcl-camera svg { width: 100%; height: 100%; fill: var(--fcl-purple); }

.fcl-heading { text-align: center; margin-bottom: 38px; }
.fcl-heading h1 {
    margin: 0 0 11px;
    font-size: clamp(28px, 2.25vw, 38px);
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -.7px;
}
.fcl-heading p { margin: 0; color: var(--fcl-muted); font-size: 15px; line-height: 1.9; }

.fcl-alert {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.9;
}
.fcl-alert-error { background: #fff2f2; border: 1px solid #ffd0d0; color: #a12c2c; }
.fcl-alert-success { background: #effaf3; border: 1px solid #c9edd5; color: #27753f; }

.fcl-form { display: grid; gap: 20px; }
.fcl-field { display: grid; gap: 9px; color: #555b67; font-size: 13px; font-weight: 500; }
.fcl-field small { font-size: 11px; color: #9a9eaa; }
.fcl-input-wrap { position: relative; display: block; }
.fcl-input-wrap > svg {
    position: absolute;
    right: 17px;
    top: 50%;
    width: 21px;
    height: 21px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--fcl-purple);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.fcl-input-wrap input {
    width: 100%;
    height: 58px;
    border: 1px solid var(--fcl-border);
    border-radius: 10px;
    background: #fff;
    outline: 0;
    padding: 0 52px 0 50px;
    color: #171923;
    font: inherit;
    transition: .18s ease;
}
.fcl-input-wrap input:focus {
    border-color: rgba(0,51,102,.65);
    box-shadow: 0 0 0 4px rgba(0,51,102,.09);
}

.fcl-eye {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: #6f7480;
    display: grid;
    place-items: center;
}
.fcl-eye:hover { background: #eef4f9; color: var(--fcl-purple); }
.fcl-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.fcl-options {
    margin-top: -4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 12px;
}
.fcl-options a, .fcl-switch a { color: var(--fcl-purple); text-decoration: none; }
.fcl-options a:hover, .fcl-switch a:hover { text-decoration: underline; }
.fcl-remember { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: #4c505b; }
.fcl-remember input { accent-color: var(--fcl-purple); width: 17px; height: 17px; }

.fcl-primary, .fcl-secondary {
    min-height: 54px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: .18s ease;
}
.fcl-primary {
    border: 0;
    color: #fff;
    background: #003366;
    box-shadow: 0 10px 24px rgba(0,51,102,.16);
}
.fcl-primary:hover { transform: translateY(-1px); filter: brightness(.98); }
.fcl-secondary { border: 1px solid var(--fcl-purple); color: var(--fcl-purple); background: #fff; }
.fcl-secondary:hover { background: #f4f8fb; color: var(--fcl-purple-dark); }

.fcl-divider { display: flex; align-items: center; gap: 16px; color: #8a8f99; font-size: 12px; }
.fcl-divider::before, .fcl-divider::after { content: ''; flex: 1; height: 1px; background: #e6e8ed; }

.fcl-switch { margin: 2px 0 0; text-align: center; color: #686d78; font-size: 13px; }

.fcl-trust {
    margin-top: 46px;
    padding-top: 28px;
    border-top: 1px solid #eceef1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.fcl-trust > div { text-align: center; padding: 0 10px; position: relative; }
.fcl-trust > div + div::before { content: ''; position: absolute; right: 0; top: 8px; bottom: 8px; width: 1px; background: #eceef1; }
.fcl-trust span { display: block; margin-bottom: 8px; color: #626978; font-size: 26px; line-height: 1; }
.fcl-trust .fcl-trust-icon { width: 30px; height: 30px; margin: 0 auto 10px; color: #7a8190; display: block; }
.fcl-trust .fcl-trust-icon svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fcl-trust b { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 800; color: #535865; }
.fcl-trust small { display: block; color: #9a9eaa; font-size: 12px; line-height: 1.7; }

.fcl-footer { color: #737987; font-size: 12px; text-align: center; }

@media (max-width: 980px) {
    .fcl-shell { padding: 18px; }
    .fcl-card { width: min(620px, 100%); min-height: auto; grid-template-columns: 1fr; }
    .fcl-visual { display: none; }
    .fcl-panel { padding: 44px 30px 34px; }
}

@media (max-width: 560px) {
    .fcl-shell { justify-content: flex-start; padding: 0; background: #fff; }
    .fcl-card { border: 0; border-radius: 0; box-shadow: none; min-height: calc(100vh - 42px); }
    .fcl-panel { align-items: flex-start; padding: 34px 20px 28px; }
    .fcl-brand { margin-bottom: 28px; font-size: 25px; }
    .fcl-camera { width: 37px; height: 37px; }
    .fcl-heading { margin-bottom: 30px; }
    .fcl-heading h1 { font-size: 27px; }
    .fcl-input-wrap input { height: 56px; }
    .fcl-options { align-items: flex-start; flex-direction: column; gap: 12px; }
    .fcl-trust { margin-top: 35px; gap: 14px; }
    .fcl-trust > div { padding: 0 4px; }
    .fcl-trust small { display: none; }
    .fcl-footer { padding: 0 20px 18px; }
}


/* FotoCity login refinements - based on v1.1.0 */
.fcl-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.fcl-login-form .fcl-login-field {
    gap: 0 !important;
}

.fcl-login-form .fcl-input-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.fcl-login-form .fcl-login-input {
    width: 100% !important;
    height: 58px !important;
    margin: 0 !important;
    border: 1px solid var(--fcl-border) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--fcl-text) !important;
    outline: none !important;
    text-align: center !important;
    direction: rtl !important;
    padding: 0 56px !important;
    box-shadow: none !important;
    font: inherit !important;
}

.fcl-login-form .fcl-login-input::placeholder {
    color: #7a808c !important;
    opacity: 1 !important;
    text-align: center !important;
}

.fcl-login-form .fcl-login-input:focus {
    border-color: #003366 !important;
    box-shadow: 0 0 0 4px rgba(0,51,102,.09) !important;
}

/* Username icon stays inside the field on the right. */
.fcl-login-form .fcl-input-wrap > svg {
    right: 17px !important;
    left: auto !important;
    stroke: #003366 !important;
}

/* Password eye is inside the password field on the right. */
.fcl-login-form .fcl-password-wrap .fcl-eye {
    position: absolute !important;
    right: 10px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #003366 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    z-index: 5 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.fcl-login-form .fcl-password-wrap .fcl-eye:hover,
.fcl-login-form .fcl-password-wrap .fcl-eye:focus-visible {
    background: #eef4f9 !important;
    color: #003366 !important;
    outline: none !important;
}

.fcl-login-form .fcl-password-wrap .fcl-eye svg {
    width: 21px !important;
    height: 21px !important;
    margin: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
}

.fcl-eye-hide { display: none !important; }
.fcl-eye.is-visible .fcl-eye-show { display: none !important; }
.fcl-eye.is-visible .fcl-eye-hide { display: block !important; }

/* Prevent the centered password text from colliding with the eye button. */
.fcl-login-form .fcl-password-input {
    padding-right: 58px !important;
    padding-left: 58px !important;
}

.fcl-primary,
.fcl-primary:visited,
.fcl-primary:hover,
.fcl-primary:focus {
    background: #003366 !important;
    border-color: #003366 !important;
    color: #ffffff !important;
}

.fcl-secondary,
.fcl-secondary:visited {
    border-color: #003366 !important;
    color: #003366 !important;
    background: #ffffff !important;
}

.fcl-secondary:hover,
.fcl-secondary:focus {
    border-color: #003366 !important;
    color: #003366 !important;
    background: #f4f8fb !important;
}

.fcl-options a,
.fcl-switch a {
    color: #003366 !important;
}

.fcl-remember input {
    accent-color: #003366 !important;
}


/* v1.1.3 - unified centered/Bold account form fields */
.fcl-form-field { gap: 0 !important; }

.fcl-form .fcl-center-input,
.fcl-form input.fcl-center-input {
    width: 100% !important;
    height: 58px !important;
    margin: 0 !important;
    padding: 0 58px !important;
    border: 1px solid var(--fcl-border) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #171923 !important;
    outline: 0 !important;
    box-shadow: none !important;
    text-align: center !important;
    font-family: "Vazirmatn", "IRANSX", "IRANS", Tahoma, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    transition: border-color .18s ease, box-shadow .18s ease !important;
}

.fcl-form .fcl-center-input::placeholder {
    color: #5f6672 !important;
    opacity: 1 !important;
    text-align: center !important;
    font-family: "Vazirmatn", "IRANSX", "IRANS", Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.fcl-form .fcl-center-input:focus {
    border-color: #003366 !important;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, .09) !important;
}

/* Icons inside normal text fields stay on the right. */
.fcl-form .fcl-input-wrap > svg {
    right: 17px !important;
    left: auto !important;
    stroke: #003366 !important;
    z-index: 3 !important;
}

/* Every password field gets an eye button inside the right side. */
.fcl-form .fcl-password-wrap .fcl-eye {
    position: absolute !important;
    right: 10px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #003366 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    z-index: 5 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.fcl-form .fcl-password-wrap .fcl-eye:hover,
.fcl-form .fcl-password-wrap .fcl-eye:focus-visible {
    color: #003366 !important;
    background: #edf3f8 !important;
    outline: none !important;
}

.fcl-form .fcl-password-wrap .fcl-eye svg {
    width: 21px !important;
    height: 21px !important;
    margin: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
}

.fcl-form .fcl-password-input {
    padding-right: 58px !important;
    padding-left: 58px !important;
}

.fcl-primary,
.fcl-primary:visited,
.fcl-primary:hover,
.fcl-primary:focus {
    background: #003366 !important;
    border-color: #003366 !important;
    color: #fff !important;
    font-family: "Vazirmatn", "IRANSX", "IRANS", Tahoma, Arial, sans-serif !important;
    font-weight: 800 !important;
}

@media (min-width: 981px) {
    /* Keep the entire source artwork visible instead of cropping its top/bottom. */
    .fcl-card { min-height: 820px; }
    .fcl-visual img { object-fit: contain !important; }
}
