@font-face {
    font-family: 'Acumin Pro';
    font-style: normal;
    font-weight: normal;
    src: local('Acumin Pro'), url('../fonts/Acumin-RPro.woff') format('woff');
}

@font-face {
    font-family: 'Acumin Pro Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Acumin Pro Italic'), url('../fonts/Acumin-ItPro.woff') format('woff');
}

@font-face {
    font-family: 'Acumin Pro Bold';
    font-style: normal;
    font-weight: normal;
    src: local('Acumin Pro Bold'), url('../fonts/Acumin-BdPro.woff') format('woff');
}

@font-face {
    font-family: 'Acumin Pro Bold Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Acumin Pro Bold Italic'), url('../fonts/Acumin-BdItPro.woff') format('woff');
}

@font-face {
    font-family: 'Acumin Pro Bold Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Acumin Pro Bold Italic'), url('../fonts/Acumin-BdItPro.woff') format('woff');
}

@font-face {
    font-family: 'AcuminPro-BoldItalic';
    src: url('../fonts/AcuminPro-BoldItalic.eot');
    src: url('../fonts/AcuminPro-BoldItalic.eot?#iefix') format('embedded-opentype'), url('../fonts/AcuminPro-BoldItalic.svg#AcuminPro-BoldItalic') format('svg'), url('../fonts/AcuminPro-BoldItalic.ttf') format('truetype'), url('../fonts/AcuminPro-BoldItalic.woff') format('woff'), url('../fonts/AcuminPro-BoldItalic.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AcuminPro-Bold';
    src: url('../fonts/AcuminPro-Bold.eot');
    src: url('../fonts/AcuminPro-Bold.eot?#iefix') format('embedded-opentype'), url('../fonts/AcuminPro-Bold.svg#AcuminPro-Bold') format('svg'), url('../fonts/AcuminPro-Bold.ttf') format('truetype'), url('../fonts/AcuminPro-Bold.woff') format('woff'), url('../fonts/AcuminPro-Bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AcuminPro-Italic';
    src: url('../fonts/AcuminPro-Italic.eot');
    src: url('../fonts/AcuminPro-Italic.eot?#iefix') format('embedded-opentype'), url('../fonts/AcuminPro-Italic.svg#AcuminPro-Italic') format('svg'), url('../fonts/AcuminPro-Italic.ttf') format('truetype'), url('../fonts/AcuminPro-Italic.woff') format('woff'), url('../fonts/AcuminPro-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AcuminPro-Regular';
    src: url('../fonts/AcuminPro-Regular.eot');
    src: url('../fonts/AcuminPro-Regular.eot?#iefix') format('embedded-opentype'), url('../fonts/AcuminPro-Regular.svg#AcuminPro-Regular') format('svg'), url('../fonts/AcuminPro-Regular.ttf') format('truetype'), url('../fonts/AcuminPro-Regular.woff') format('woff'), url('../fonts/AcuminPro-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.container>submit {
    padding: 200px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'AcuminPro-Regular', sans-serif;
    font-style: normal;
    font-weight: normal;
    overflow-x: hidden;
}

a {
    font-family: 'AcuminPro-Regular';
    font-style: normal;
    font-weight: normal;
}

/* Split Layout */
.split-layout {
    display: flex;
    height: 100vh; /* Fixed height to 100vh */
    width: 100%;
    background-color: #f4f7f6;
    overflow-y: auto; /* Only scroll if content is too tall (e.g. mobile) */
}

.split-left {
    flex: 0 0 40%;
    max-width: 40%;
    display: none;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    align-items: center;
    justify-content: center;
    color: #ffffff;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 900px) {
    .split-left {
        display: flex;
    }
}

.split-left::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
}

.left-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 500px;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

.left-logo {
    max-width: 200px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
    display: block;
    margin-left: auto;
    margin-right: auto;
    transform-origin: center;
}

.heartbeat {
    animation: heartbeat 3s infinite;
}

.left-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.left-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    position: relative;
}

/* Old layout containers overridden for split layout compatibility */
.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.logo-small {
    margin: 20px;
    width: 100%;
    max-width: 80px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 40vw;
    min-height: 160px;
    background-size: cover;
    background-position: left top;
    z-index: 20;
}

@media (max-width: 900px) {
    .header {
        position: relative;
        width: 100%;
        min-height: 120px;
    }
}

.footer {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    background-size: cover;
    min-height: 160px;
    text-align: right;
    z-index: 10;
}

@media (max-width: 900px) {
    .footer {
        position: relative;
    }
}

.content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.box {
    text-align: center;
    background-color: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 50px 40px;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.03);
    border-radius: 24px;
    border: 1px solid #f0f0f0;
}

.box h3 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-top: 10px;
    margin-bottom: 25px;
}

.box form {
    position: relative;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e1e8ed;
}

.box form::before {
    content: "oppure con email";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 0 15px;
    color: #a0aab2;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

#otp-form {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

#otp-form::before {
    display: none;
}

.box form br {
    display: none;
}

.logo {
    margin: 0 auto 20px auto;
    width: 160px;
    display: block;
}

.google-login {
    width: 100%;
    max-width: 260px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.google-login:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.inner-footer {
    padding-top: 120px;
    padding-right: 30px;
    font-size: 14px;
    text-align: left;
    padding-left: 40px;
    padding-right: 0;
}

.areas {
    list-style: none;
    padding: 0;
}

.areas li {
    padding: 10px 0;
}

.areas li a {
    display: inline-block;
    color: #2c3e50;
    padding: 14px 40px;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    min-width: 160px;
    margin: 10px;
    background-color: #f8fafc;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.areas li a:hover {
    background-color: #ffffff;
    border-color: #41A9E5;
    color: #41A9E5;
    box-shadow: 0 4px 12px rgba(65,169,229,0.1);
    transform: translateY(-2px);
}

#password,
#email,
input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #e0e0e0 !important;
    background-color: #f9f9f9 !important;
    margin-bottom: 15px;
    padding: 14px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
}

#password:focus,
#email:focus,
input[type="text"]:focus {
    border-color: #41A9E5 !important;
    background-color: #ffffff !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(65, 169, 229, 0.15);
}

.box input[type=submit] {
    border-radius: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    border: none !important;
    background: linear-gradient(135deg, #41A9E5 0%, #2980b9 100%);
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(65, 169, 229, 0.3);
}

.box input[type=submit]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 169, 229, 0.4);
}

.box input[type=submit]:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(65, 169, 229, 0.3);
}

.box .error {
    color: #e74c3c;
    background: #fdf0ed;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 15px;
    border: 1px solid #fadcd9;
    text-align: center;
}

.box .success {
    color: #27ae60;
    background: #eafaf1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 15px;
    border: 1px solid #d4f3e0;
    text-align: center;
}

.link {
    color: #1e3a8a;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    text-decoration: none;
}

.link:hover {
    color: #1e3a8a;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    text-decoration: underline;
}

@media (min-width:769px) {
    .box {
        padding: 50px 40px;
    }
}

@media (max-width:768px) {
    .box {
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding: 20px 15px;
    }
    .header {
        text-align: center;
    }

    .inner-footer {
        text-align: center;
        font-size: 12px;
        padding-right: 0px;
    }

    .logo {
        width: 140px;
    }

    .google-login {
        width: 220px;
    }
}

#region otp
.otp-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.otp-wrapper input {
    width: 45px;
    height: 55px;
    font-size: 24px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#otp-form input[type=submit] {
    margin: 10px;
}

.otp-wrapper input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

@media (max-width: 500px) {
    .otp-wrapper {
        gap: 6px;
    }
    
    .otp-wrapper input {
        width: 38px;
        height: 48px;
        font-size: 20px;
    }
}
#endregion otp