* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: 'Inter', sans-serif;
    background: #f4f4f5;
}

.page,
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 58% 42%;
    align-items: center;
}

.visual,
.login-visual {
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-card {
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    border-radius: 32px;
    overflow: hidden;
    background-image: url('/media/0vknlxk4/prova3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: auto;
    box-shadow: 0 18px 45px rgba(20, 30, 60, 0.08);
}

.panel,
.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.box,
.login-box {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 78, 121, 0.08);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 18px 45px rgba(20, 30, 60, 0.06);
}

h1,
.login-title {
    font-size: 48px;
    font-weight: 400;
    color: #1F4E79;
    margin: 0 0 28px 0;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 32px;
    line-height: 1.5;
    font-size: 15px;
}

.form-group {
    margin-bottom: 18px;
}

label,
.form-label {
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

input,
.form-control {
    width: 100%;
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    background: #ffffff;
}

input:focus,
.form-control:focus {
    border-color: #1F4E79;
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.12);
    outline: none;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.remember-row input {
    width: auto;
    height: auto;
}

.forgot-row {
    text-align: right;
    margin-bottom: 28px;
}

.forgot-row a,
.back-link {
    color: #1F4E79;
    text-decoration: none;
    font-size: 14px;
}

.forgot-row a:hover,
.back-link:hover {
    text-decoration: underline;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 22px;
}

button,
.btn-login {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 999px;
    background: #1F4E79;
    color: white;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 10px 22px rgba(31, 78, 121, 0.18);
}

button:hover,
.btn-login:hover {
    background: #163a5f;
}

button:disabled,
.btn-login:disabled {
    background: #888;
    cursor: not-allowed;
    box-shadow: none;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.error,
.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.success,
.alert-success {
    background: #dcfce7;
    color: #166534;
}

.password-help {
    margin-top: 7px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.password-strength {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
}

#passwordStrengthBar {
    height: 100%;
    width: 0%;
    background: #dc2626;
    transition: width 0.25s ease, background 0.25s ease;
}

.password-strength-text {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.verify-code-input {
    height: 52px;
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 600;
}

@media (max-width: 992px) {
    .page,
    .login-page {
        grid-template-columns: 1fr;
    }

    .visual,
    .login-visual {
        display: none;
    }

    .panel,
    .login-panel {
        padding: 32px 20px;
    }

    .box,
    .login-box {
        padding: 32px 24px;
    }
}