﻿:root {
    --login-primary: #005bea;
    --login-primary-dark: #003fd1;
    --login-accent: #12d6c5;
    --login-dark: #08152b;
    --login-text: #111827;
    --login-muted: #6b7280;
    --login-border: #d8dee9;
    --login-bg: #f5f7fb;
    --login-white: #ffffff;
    --login-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--login-bg);
    color: var(--login-text);
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    overflow: hidden;
}

.login-hero {
    position: relative;
    min-height: 100vh;
    background: #061326;
    overflow: hidden;
}

.login-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.03) contrast(1.02);
}

.login-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(4, 13, 35, 0.88) 0%, rgba(4, 13, 35, 0.55) 42%, rgba(4, 13, 35, 0.18) 100% );
    pointer-events: none;
}

.login-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 96px 56px 56px 64px;
    z-index: 2;
}

.login-hero-text {
    max-width: 460px;
    color: #ffffff;
}

    .login-hero-text h2 {
        margin: 0;
        font-size: 34px;
        line-height: 1.25;
        font-weight: 700;
        color: #ffffff;
    }

        .login-hero-text h2 span {
            color: #1b8cff;
        }

    .login-hero-text p {
        margin: 30px 0 0;
        font-size: 17px;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.88);
    }

.login-hero-line {
    width: 72px;
    height: 4px;
    margin-top: 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, #12d6c5, #1b8cff);
}

.login-content {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 72px;
    background: radial-gradient(circle at top right, rgba(0, 91, 234, 0.08), transparent 34%), linear-gradient(135deg, #ffffff 0%, #f6f8fc 58%, #eef4ff 100%);
}

    .login-content::after {
        content: "";
        position: absolute;
        inset: auto -120px -140px auto;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        background: rgba(0, 91, 234, 0.08);
        filter: blur(4px);
        pointer-events: none;
    }

.login-card {
    position: relative;
    z-index: 2;
    width: min(100%, 640px);
    min-height: auto;
    padding: 52px 74px 44px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 234, 242, 0.96);
    box-shadow: var(--login-shadow);
    backdrop-filter: blur(12px);
}

.login-brand {
    text-align: center;
    margin-bottom: 26px;
}

.login-brand-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 10px;
}

.login-brand-icon {
    width: 54px;
    height: 54px;
    object-fit: contain;
    display: block;
    background: transparent;
    flex: 0 0 auto;
    margin-top: 0;
}

.login-brand-title-block {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
}

.login-brand-name {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    text-align: center;
    white-space: nowrap;
}

.login-brand-name-main {
    color: #061326;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 4px;
    line-height: 1;
}

.login-brand-name-srl {
    color: var(--login-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    margin-left: 2px;
}

.login-brand-description {
    margin-top: 8px;
    color: #5f6878;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-align: center;
}

.login-brand-line {
    width: 56px;
    height: 3px;
    border-radius: 999px;
    margin: 18px auto 0;
    background: linear-gradient(90deg, var(--login-primary), var(--login-accent));
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

    .login-header h1 {
        margin: 0 0 8px;
        font-size: 25px;
        line-height: 1.2;
        font-weight: 700;
        color: #101827;
    }

    .login-header p {
        margin: 0;
        font-size: 15px;
        color: var(--login-muted);
    }

.login-validation-summary {
    min-height: 0;
    margin-bottom: 12px;
}

.login-form-group {
    margin-bottom: 20px;
}

.login-label {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #728096;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

    .login-input-icon svg,
    .login-password-toggle svg {
        fill: currentColor;
    }

.login-input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--login-border);
    border-radius: 9px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    outline: none;
    padding: 0 52px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

    .login-input::placeholder {
        color: #8a95a8;
    }

    .login-input:focus {
        border-color: rgba(0, 91, 234, 0.72);
        box-shadow: 0 0 0 4px rgba(0, 91, 234, 0.11);
        background: #ffffff;
    }

.login-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6f7b90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .login-password-toggle:hover {
        background: #f1f5f9;
        color: var(--login-primary);
    }

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 26px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #1f2937;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

    .login-remember input {
        width: 17px;
        height: 17px;
        margin: 0;
        accent-color: var(--login-primary);
    }

.login-link,
.login-help a {
    color: var(--login-primary-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

    .login-link:hover,
    .login-help a:hover {
        color: var(--login-primary);
        text-decoration: underline;
    }

.login-submit {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--login-primary), var(--login-primary-dark));
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 14px 26px rgba(0, 91, 234, 0.25);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

    .login-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 34px rgba(0, 91, 234, 0.3);
        filter: brightness(1.02);
    }

    .login-submit:active {
        transform: translateY(0);
        box-shadow: 0 10px 18px rgba(0, 91, 234, 0.2);
    }

.login-submit-arrow {
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
}

.login-help {
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid #e5e9f0;
    text-align: center;
    color: #4b5563;
    font-size: 14px;
}

    .login-help span {
        margin-right: 4px;
    }

.login-validation-summary {
    text-align: left;
    border-radius: 10px;
    font-size: 0.875rem;
}

    .login-validation-summary ul {
        margin-bottom: 0;
        padding-left: 1rem;
    }

    .login-validation-summary.validation-summary-valid {
        display: none;
    }

.forgot-password-modal-open {
    overflow: hidden;
}

.forgot-password-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.58);
    backdrop-filter: blur(8px);
}

.forgot-password-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 34px 32px 32px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
    text-align: center;
}

.forgot-password-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    color: #111827;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

    .forgot-password-close:hover {
        background: rgba(15, 23, 42, 0.12);
    }

.forgot-password-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.forgot-password-brand-icon {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.forgot-password-title {
    margin: 0;
    color: #111827;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.forgot-password-description {
    max-width: 310px;
    margin: 8px auto 22px;
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.45;
}

.forgot-password-form-group {
    margin-bottom: 14px;
    text-align: left;
}

.forgot-password-label {
    display: block;
    margin-bottom: 7px;
    color: #111827;
    font-size: 0.86rem;
    font-weight: 700;
}

.forgot-password-input-wrapper {
    position: relative;
}

.forgot-password-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    display: flex;
    transform: translateY(-50%);
    color: #8b95a7;
}

    .forgot-password-input-icon svg {
        fill: currentColor;
    }

.forgot-password-input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 44px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #111827;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .forgot-password-input:focus {
        border-color: #0b5ed7;
        box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.12);
    }

.forgot-password-message {
    margin: 14px 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.86rem;
    line-height: 1.35;
    text-align: center;
}

.forgot-password-message-success {
    border: 1px solid rgba(13, 110, 253, 0.18);
    background: rgba(13, 110, 253, 0.08);
    color: #0b3b82;
}

.forgot-password-message-error {
    border: 1px solid rgba(220, 53, 69, 0.18);
    background: rgba(220, 53, 69, 0.08);
    color: #842029;
}

.forgot-password-submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #0b6bff 0%, #0046c7 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 14px 26px rgba(11, 94, 215, 0.24);
    cursor: pointer;
}

    .forgot-password-submit:hover {
        filter: brightness(0.98);
    }

    .forgot-password-submit:disabled {
        cursor: not-allowed;
        opacity: 0.72;
    }

@media (max-width: 1399.98px) {
    .login-hero-content {
        padding: 82px 48px 48px 52px;
    }

    .login-hero-text h2 {
        font-size: 31px;
    }

    .login-hero-text p {
        font-size: 16px;
    }
}

/* ============================================================
   CONTACT PQR MODAL
   ============================================================ */

.contact-pqr-modal-open {
    overflow: hidden;
}

.contact-pqr-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(10px);
}

.contact-pqr-modal {
    position: relative;
    width: min(94vw, 720px);
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(11, 107, 255, 0.10), transparent 32%), linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.35);
}

.contact-pqr-shell {
    padding: 34px;
}

.contact-pqr-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.07);
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .contact-pqr-close:hover {
        background: rgba(15, 23, 42, 0.13);
        transform: rotate(90deg);
    }

.contact-pqr-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.contact-pqr-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: rgba(239, 246, 255, 0.85);
    box-shadow: inset 0 0 0 1px rgba(11, 107, 255, 0.10);
}

.contact-pqr-brand-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.contact-pqr-title {
    margin: 0;
    color: #0f172a;
    font-size: 1.65rem;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.contact-pqr-subtitle {
    max-width: 520px;
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.45;
}

.contact-pqr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-pqr-form-group {
    margin-bottom: 14px;
}

.contact-pqr-label {
    display: block;
    margin-bottom: 7px;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 750;
}

.contact-pqr-input,
.contact-pqr-textarea {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 0.94rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-pqr-input {
    height: 46px;
    padding: 0 14px;
}

.contact-pqr-textarea {
    min-height: 118px;
    padding: 13px 14px;
    resize: vertical;
}

    .contact-pqr-input:focus,
    .contact-pqr-textarea:focus {
        border-color: #0b6bff;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(11, 107, 255, 0.12);
    }

.contact-pqr-upload {
    margin: 4px 0 16px;
}

.contact-pqr-upload-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px dashed #9dbaf7;
    border-radius: 16px;
    background: rgba(239, 246, 255, 0.72);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

    .contact-pqr-upload-box:hover {
        border-color: #0b6bff;
        background: rgba(239, 246, 255, 0.98);
        transform: translateY(-1px);
    }

.contact-pqr-upload-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    background: #0b6bff;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(11, 107, 255, 0.24);
}

.contact-pqr-upload-title {
    display: block;
    color: #0f172a;
    font-size: 0.93rem;
    font-weight: 800;
}

.contact-pqr-upload-subtitle {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.82rem;
}

.contact-pqr-attachment-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.contact-pqr-attachment-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.82rem;
}

.contact-pqr-attachment-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-pqr-attachment-size {
    color: #64748b;
    white-space: nowrap;
}

.contact-pqr-message {
    margin: 12px 0 14px;
    padding: 13px 15px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.4;
    text-align: center;
}

.contact-pqr-message-success {
    border: 1px solid rgba(22, 163, 74, 0.22);
    background: rgba(22, 163, 74, 0.09);
    color: #166534;
}

.contact-pqr-message-error {
    border: 1px solid rgba(220, 53, 69, 0.22);
    background: rgba(220, 53, 69, 0.09);
    color: #842029;
}

.contact-pqr-footer-note {
    margin: 12px 0 16px;
    padding: 13px 15px;
    border: 1px solid rgba(11, 107, 255, 0.14);
    border-radius: 14px;
    background: rgba(239, 246, 255, 0.82);
    color: #315177;
    font-size: 0.86rem;
    line-height: 1.35;
    text-align: center;
}

.contact-pqr-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #0b6bff 0%, #0046c7 100%);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 850;
    box-shadow: 0 16px 32px rgba(11, 107, 255, 0.26);
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

    .contact-pqr-submit:hover {
        filter: brightness(0.98);
        transform: translateY(-1px);
        box-shadow: 0 18px 36px rgba(11, 107, 255, 0.30);
    }

    .contact-pqr-submit:disabled {
        cursor: not-allowed;
        opacity: 0.72;
        transform: none;
    }

@media (max-width: 720px) {
    .contact-pqr-modal {
        width: 96vw;
        max-height: 94vh;
        border-radius: 20px;
    }

    .contact-pqr-shell {
        padding: 28px 20px;
    }

    .contact-pqr-header {
        flex-direction: column;
        text-align: center;
    }

    .contact-pqr-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 1199.98px) {
    .login-page {
        grid-template-columns: 0.95fr 1.05fr;
    }

    .login-content {
        padding: 44px 48px;
    }

    .login-card {
        padding: 48px 52px 42px;
    }

    .login-brand-icon {
        width: 52px;
        height: 52px;
    }

    .login-brand-title-block {
        min-height: 52px;
    }

    .login-brand-name-main {
        font-size: 31px;
        letter-spacing: 3px;
    }

    .login-brand-name-srl {
        font-size: 10px;
    }

    .login-hero-content {
        padding: 70px 38px 38px 42px;
    }

    .login-hero-text {
        max-width: 390px;
    }

        .login-hero-text h2 {
            font-size: 28px;
        }

        .login-hero-text p {
            font-size: 15px;
            line-height: 1.65;
            margin-top: 24px;
        }
}

@media (max-width: 991.98px) {
    .login-page {
        display: block;
        min-height: 100vh;
    }

    .login-content {
        min-height: 100vh;
        padding: 40px 24px;
    }

    .login-card {
        width: min(100%, 560px);
        min-height: auto;
        padding: 46px 36px 38px;
    }

    .login-brand-icon {
        width: 50px;
        height: 50px;
    }

    .login-brand-title-block {
        min-height: 50px;
    }

    .login-brand-name-main {
        font-size: 30px;
        letter-spacing: 2.5px;
    }

    .login-brand-name-srl {
        font-size: 10px;
    }

    .login-brand-description {
        font-size: 12.5px;
    }
}

@media (max-width: 575.98px) {
    .login-content {
        padding: 24px 14px;
    }

    .login-card {
        border-radius: 20px;
        padding: 38px 22px 30px;
    }

    .login-brand-top {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .login-brand-icon {
        width: 58px;
        height: 58px;
    }

    .login-brand-title-block {
        min-height: auto;
        justify-content: center;
    }

    .login-brand-name {
        justify-content: center;
        gap: 6px;
    }

    .login-brand-name-main {
        font-size: 29px;
        letter-spacing: 1.5px;
    }

    .login-brand-name-srl {
        font-size: 10px;
    }

    .login-brand-description {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        font-size: 12px;
    }

    .login-header h1 {
        font-size: 23px;
    }

    .login-header p {
        font-size: 14px;
    }

    .login-input {
        height: 52px;
        font-size: 15px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .login-submit {
        height: 54px;
        font-size: 16px;
    }

    .login-help {
        margin-top: 34px;
    }
}
