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

        :root {
            --navy:      #0b1e35;
            --navy-mid:  #112840;
            --teal:      #0e9f8e;
            --teal-light:#13c4af;
            --cream:     #f5f0e8;
            --cream-dark:#ece6d8;
            --white:     #ffffff;
            --red:       #e84040;
            --text-muted:#8a9bb0;
        }

        html, body {
            height: 100%;
            font-family: 'DM Sans', sans-serif;
            background-color: var(--navy);
            color: var(--white);
            overflow: hidden;
        }

        /* ── Background pattern ── */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image:
                radial-gradient(circle at 20% 30%, rgba(14,159,142,.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(11,30,53,.8) 0%, transparent 50%),
                repeating-linear-gradient(
                    45deg,
                    transparent,
                    transparent 40px,
                    rgba(255,255,255,.015) 40px,
                    rgba(255,255,255,.015) 41px
                );
            pointer-events: none;
            z-index: 0;
        }

        .wrapper {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: 1fr 1fr;
            height: 100vh;
        }

        /* ── Panel izquierdo ── */
        .brand-panel {
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 60px;
            position: relative;
        }

        .brand-panel::after {
            content: '';
            position: absolute;
            right: 0;
            top: 10%;
            height: 80%;
            width: 1px;
            background: linear-gradient(to bottom, transparent, rgba(14,159,142,.4), transparent);
        }

        .logo-mark {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 60px;
			margin-left:10px;
            animation: fadeUp .6s ease both;
        }

        .logo-icon {
            width: 48px;
            height: 48px;
            background:  transparent;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
        }
		.logo-icon .logopeq {
			width: 80px;
            height: 80px;
		}

        .logo-text {
            font-family: 'DM Serif Display', serif;
            font-size: 1.5rem;
            letter-spacing: .5px;
			margin-left:10px;
        }

        .logo-text span {
            color: var(--teal-light);
        }

        .brand-headline {
            font-family: 'DM Serif Display', serif;
            font-size: clamp(2rem, 3.5vw, 3rem);
            line-height: 1.2;
            margin-bottom: 20px;
            animation: fadeUp .6s .1s ease both;
        }

        .brand-headline em {
            font-style: normal;
            color: var(--teal-light);
			margin-left:20px;
        }

        .brand-sub {
            font-size: .95rem;
            color: var(--text-muted);
            line-height: 1.7;
            max-width: 380px;
            animation: fadeUp .6s .2s ease both;
        }

        .brand-badges {
            display: flex;
            gap: 12px;
            margin-top: 48px;
            flex-wrap: wrap;
            animation: fadeUp .6s .3s ease both;
        }

        .badge {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(14,159,142,.1);
            border: 1px solid rgba(14,159,142,.25);
            border-radius: 100px;
            padding: 8px 16px;
            font-size: .82rem;
            color: var(--teal-light);
        }

        /* ── Panel derecho (formulario) ── */
        .form-panel {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 60px 80px;
            animation: fadeUp .6s .15s ease both;
        }

        .form-card {
            width: 100%;
            max-width: 400px;
        }

        .form-title {
            font-family: 'DM Serif Display', serif;
            font-size: 1.8rem;
            margin-bottom: 6px;
        }

        .form-subtitle {
            font-size: .88rem;
            color: var(--text-muted);
            margin-bottom: 40px;
        }

        .field {
            margin-bottom: 22px;
        }

        .field label {
            display: block;
            font-size: .82rem;
            font-weight: 500;
            letter-spacing: .5px;
            text-transform: uppercase;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .input-wrap {
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 16px;
            opacity: .5;
            pointer-events: none;
        }

        .field input {
            width: 100%;
            background: rgba(255,255,255,.06);
            border: 1px solid rgba(255,255,255,.1);
            border-radius: 10px;
            padding: 14px 16px 14px 44px;
            font-family: 'DM Sans', sans-serif;
            font-size: .95rem;
            color: var(--white);
            outline: none;
            transition: border-color .2s, background .2s;
        }

        .field input::placeholder { color: rgba(255,255,255,.25); }

        .field input:focus {
            border-color: var(--teal);
            background: rgba(14,159,142,.08);
        }

        .toggle-pass {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            font-size: 16px;
            opacity: .4;
            color: var(--white);
            transition: opacity .2s;
        }
        .toggle-pass:hover { opacity: .8; }

        .error-box {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(232,64,64,.12);
            border: 1px solid rgba(232,64,64,.3);
            border-radius: 10px;
            padding: 12px 16px;
            font-size: .88rem;
            color: #f08080;
            margin-bottom: 22px;
            animation: shake .4s ease;
        }

        .btn-login {
            width: 100%;
            background: var(--teal);
            color: var(--white);
            border: none;
            border-radius: 10px;
            padding: 15px;
            font-family: 'DM Sans', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background .2s, transform .1s;
            margin-top: 8px;
            position: relative;
            overflow: hidden;
        }

        .btn-login::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255,255,255,.1), transparent);
        }

        .btn-login:hover { background: var(--teal-light); }
        .btn-login:active { transform: scale(.98); }

        .form-footer {
            text-align: center;
            margin-top: 28px;
            font-size: .8rem;
            color: var(--text-muted);
        }

        /* ── Animaciones ── */
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(20px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%       { transform: translateX(-6px); }
            40%       { transform: translateX(6px); }
            60%       { transform: translateX(-4px); }
            80%       { transform: translateX(4px); }
        }

        /* ── Responsive ── */
        @media (max-width: 768px) {
            body { overflow: auto; }
            .wrapper { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
            .brand-panel { padding: 40px 32px 20px; }
            .brand-panel::after { display: none; }
            .brand-headline { font-size: 1.8rem; }
            .form-panel { padding: 32px; }
        }