﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a0a2e 0%, #1a1040 25%, #0d1f4e 50%, #2a0a1e 75%, #1a0d0d 100%);
    min-height: 100vh;
}

    body::before {
        content: '';
        position: fixed;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(ellipse at 20% 50%, rgba(220,30,60,0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(30,60,200,0.15) 0%, transparent 50%), radial-gradient(ellipse at 60% 80%, rgba(180,20,80,0.1) 0%, transparent 40%);
        pointer-events: none;
        z-index: 0;
    }

.container {
    position: relative;
    z-index: 1;
}

/* BOX AREA */
.box-area {
    max-width: 860px;
    border: none !important;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
    padding: 0 !important;
    animation: fadeInUp 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LEFT BOX */
.left-box {
    background: linear-gradient(160deg, #1a3a6e 0%, #0f2044 60%, #1a1030 100%) !important;
    padding: 3rem 2rem !important;
    position: relative;
    overflow: hidden;
    border-radius: 0 !important;
}

    .left-box::before {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 260px;
        height: 260px;
        background: radial-gradient(circle, rgba(60,130,255,0.15) 0%, transparent 70%);
        border-radius: 50%;
        z-index: 0;
    }

    .left-box::after {
        content: '';
        position: absolute;
        bottom: -60px;
        left: -60px;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(200,40,80,0.1) 0%, transparent 70%);
        border-radius: 50%;
        z-index: 0;
    }

    .left-box > * {
        position: relative;
        z-index: 1;
    }

/*.featured-image img {
    filter: drop-shadow(0 12px 32px rgba(60,130,255,0.3));
    animation: bounce 2.5s ease-in-out infinite;
}*/


/*ANIMACION IMAGEN*/
.featured-image img {
    filter: drop-shadow(0 12px 32px rgba(60,130,255,0.3));
    animation: spinOnLoad 0.6s cubic-bezier(0.4,0,0.2,1) both, bounce 2.5s ease-in-out 0.6s infinite;
}

@keyframes spinOnLoad {
    from {
        transform: rotateY(0deg) scale(0.85);
        opacity: 0.5;
    }

    to {
        transform: rotateY(360deg) scale(1);
        opacity: 1;
    }
}

.featured-image {
    perspective: 600px;
}
/*HASTA AQUI ANIMACION*/


@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8,0,1,1);
    }

    50% {
        transform: translateY(-18px);
        animation-timing-function: cubic-bezier(0,0,0.2,1);
    }
}

.left-box .brand-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.4px;
    margin-bottom: 0.4rem;
}

.left-box .brand-subtitle {
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    line-height: 1.6;
    text-align: center;
    max-width: 17rem;
}

/* RIGHT BOX */
.right-box {
    background: #ffffff;
    padding: 3rem 2.5rem !important;
}

.header-text h2 {
    font-weight: 700;
    font-size: 1.8rem;
    color: #0f1b2d;
    letter-spacing: -0.5px;
    margin-bottom: 0.3rem;
}

.header-text p {
    color: #6b7a8d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* INPUTS */
.input-group .form-control {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    color: #0f1b2d !important;
    font-size: 0.9rem !important;
    padding: 0.75rem 1rem !important;
    height: auto !important;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .input-group .form-control:focus {
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 3px rgba(59,130,246,0.12) !important;
        background: #fff !important;
    }

::placeholder {
    color: #a0aec0 !important;
    font-size: 0.9rem !important;
}

/* CHECKBOX & LINKS */
.form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.form-check-label {
    color: #6b7a8d;
    font-size: 0.82rem;
}

.forgot a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.2s;
}

    .forgot a:hover {
        color: #1d4ed8;
    }

/* BUTTON */
#btnlogin {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 12px !important;
    font-weight: 600;
    font-size: 0.95rem !important;
    letter-spacing: 0.3px;
    padding: 0.8rem;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 15px rgba(37,99,235,0.35);
}

    #btnlogin:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 25px rgba(37,99,235,0.45);
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    }

    #btnlogin:active {
        transform: translateY(0);
    }

/* DIVIDER */
.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.2rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    color: #a0aec0;
    font-size: 0.72rem;
    white-space: nowrap;
}

/* DESCARGA DE LA APP MOVIL */
.dl-apps {
    text-align: center;
    margin-top: 0.5rem;
}

.dl-apps-title {
    color: #94a3b8;
    font-size: 0.72rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

/* wrap para que en movil los dos botones se apilen en vez de desbordar */
.dl-apps-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

    .dl-apps-badges a {
        display: inline-block;
        line-height: 0;
        border-radius: 10px;
        transition: transform 0.15s, box-shadow 0.15s;
    }

        .dl-apps-badges a:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(15,27,45,0.25);
        }

    /* El SVG trae 180x56 fijos; con max-width se encoge en pantallas
       estrechas sin deformarse. */
    .dl-apps-badges img {
        width: 160px;
        max-width: 100%;
        height: auto;
        display: block;
    }

/* RESPONSIVE */
@media only screen and (max-width: 768px) {
    .box-area {
        margin: 0 10px;
    }

    .left-box {
        height: auto;
        padding: 2rem 1rem !important;
    }

    .right-box {
        padding: 2rem 1.5rem !important;
    }
}
