*,
*:before,
*:after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #f1f5f9;
    background-image: radial-gradient(circle at 50% 50%, #f8fafc 0%, #f1f5f9 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1e293b;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 0;
    overflow-x: hidden;
}

.background {
    width: 100%;
    max-width: 430px;
    height: 520px;
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.background .shape {
    height: 200px;
    width: 200px;
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape:first-child {
    background: linear-gradient(to right, #ff512f, #f09819);
    left: -100px;
    top: -80px;
}

.shape:last-child {
    background: linear-gradient(to left, #f09819, #ff512f);
    right: -100px;
    bottom: -80px;
    animation-delay: -3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.glass-form {
    width: 90vw;
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.glass-form h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    color: #1e293b;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
}

label {
    display: block;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #475569;
}

input {
    display: block;
    height: 50px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 0 15px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    background-color: #ffffff;
    border: 1px solid #f09819;
    box-shadow: 0 0 0 3px rgba(240, 152, 25, 0.15);
}

::placeholder {
    color: #94a3b8;
}

.password-container {
    position: relative;
    width: 100%;
    margin-top: 8px;
}

.password-container input {
    margin-top: 0;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    transition: color 0.3s ease;
    z-index: 5;
}

.toggle-password:hover {
    color: #f09819;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

.remember-me-container {
    display: flex;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.remember-me-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0;
    cursor: pointer;
    accent-color: #f09819;
}

.checkbox-label {
    margin-top: 0;
    font-weight: 400;
    color: #64748b;
    cursor: pointer;
    font-size: 13px;
}

button {
    margin-top: 40px;
    width: 100%;
    background: linear-gradient(to right, #f09819, #ff512f);
    color: #ffffff;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 81, 47, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 81, 47, 0.4);
    filter: brightness(1.05);
}

.extra-links {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.extra-links a {
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.extra-links a:hover {
    color: #f09819;
}

.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.ad-card {
    width: 280px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInSide 1s ease-out forwards;
}

.ad-card.left {
    opacity: 0;
    transform: translateX(-50px);
}

.ad-card.right {
    opacity: 0;
    transform: translateX(50px);
}

@keyframes fadeInSide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ad-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.ad-card .icon-container {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: #f09819;
    background: linear-gradient(135deg, #f09819 0%, #ff512f 100%);
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-card .icon-container svg {
    width: 100%;
    height: 100%;
    stroke: #ffffff;
    stroke-width: 2.5px;
}

.ad-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.ad-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    font-weight: 400;
}

/* Ocultar tarjetas en pantallas pequeñas para mantener el enfoque */
@media (max-width: 1000px) {
    .ad-card {
        display: none;
    }
}

/* Responsividad para pantallas cortas (ya definidas) */
@media (max-height: 750px) {
    .glass-form {
        padding: 30px 25px;
    }

    .logo-container {
        margin-bottom: 10px;
    }

    .logo-container img {
        max-width: 140px;
    }

    .glass-form h3 {
        font-size: 24px;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    label {
        margin-top: 15px;
    }

    input {
        height: 45px;
    }

    button {
        margin-top: 30px;
        padding: 12px 0;
    }
}

@media (max-height: 600px) {
    .glass-form {
        padding: 20px 25px;
    }

    .logo-container img {
        max-width: 100px;
    }

    .glass-form h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    label {
        margin-top: 10px;
    }

    button {
        margin-top: 20px;
    }

    .extra-links {
        margin-top: 20px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 450px;
    width: 90%;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    color: #1e293b;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    color: #f09819;
}