:root {
    --brand-bg: #e5eaee;
    --brand-white: #ffffff;
    --brand-text: #444444;
    --brand-orange: #EE7826;
    --brand-orange-2: #ff4a17;
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--brand-text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    /* Fondo idéntico al del error */
    background:
        radial-gradient(circle at 10% 15%, rgba(238, 120, 38, 0.10), transparent 18%),
        radial-gradient(circle at 88% 18%, rgba(255, 74, 23, 0.08), transparent 20%),
        radial-gradient(circle at 80% 85%, rgba(238, 120, 38, 0.09), transparent 18%),
        linear-gradient(135deg, #f2f5f7 0%, var(--brand-bg) 100%);
    overflow-x: hidden;
}

/* --- Layout Base --- */
.error-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.content-wrap {
    position: relative;
    z-index: 2;
}

/* --- Formas Flotantes (Animaciones más rápidas) --- */
.shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.shape-1 {
    width: 260px; height: 260px; top: 4%; left: -3%;
    border-radius: 36px; border: 2px solid rgba(238, 120, 38, 0.16);
    background: rgba(255, 255, 255, 0.22);
    animation: float-1 6s ease-in-out infinite; /* Antes 8s */
}

.shape-2 {
    width: 180px; height: 180px; bottom: 8%; left: 6%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(135deg, rgba(238, 120, 38, 0.10), rgba(255, 74, 23, 0.18));
    animation: float-2 8s ease-in-out infinite reverse; /* Antes 10s */
}

.shape-3 {
    width: 220px; height: 220px; top: 10%; right: 5%;
    border-radius: 50%; border: 2px dashed rgba(255, 74, 23, 0.20);
    animation: float-3 9s ease-in-out infinite; /* Antes 12s */
}

.shape-4 {
    width: 190px; height: 190px; bottom: 10%; right: 2%;
    border-radius: 30px; background: rgba(238, 120, 38, 0.10);
    animation: float-4 7s ease-in-out infinite; /* Antes 9s */
}

.shape-5 {
    width: 90px; height: 90px; top: 48%; left: 46%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(238, 120, 38, 0.14) 60%, transparent 100%);
    animation: float-5 5s ease-in-out infinite alternate; /* Antes 7s */
}

/* Triángulo (Centro abajo) */
.shape-6 {
    width: 140px; height: 140px; bottom: 3%; left: 42%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: linear-gradient(135deg, rgba(238, 120, 38, 0.15), rgba(255, 74, 23, 0.05));
    animation: float-6 6s ease-in-out infinite alternate;
}

/* Hexágono (Derecha abajo) */
.shape-7 {
    width: 160px; height: 160px;
    top: 8%; left: 42%; /* Posición actualizada según la imagen */
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(238, 120, 38, 0.12));
    animation: float-7 8s ease-in-out infinite reverse;
}

/* --- Animaciones Keyframes (Efecto Agua/Flotante) --- */

@keyframes float-1 {
    0%, 100% { transform: translateY(0) rotate(20deg); }
    50% { transform: translateY(-20px) rotate(25deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0) translateX(0) rotate(8deg); }
    50% { transform: translateY(-15px) translateX(15px) rotate(2deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    50% { transform: translateY(-25px) scale(1.05) rotate(15deg); }
}

@keyframes float-4 {
    0%, 100% { transform: translateY(0) rotate(28deg); }
    50% { transform: translateY(-20px) translateX(-10px) rotate(35deg); }
}

@keyframes float-5 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(15px) scale(0.95); }
}

@keyframes float-6 {
    0%, 100% { transform: translateY(0) rotate(10deg) scale(1); }
    50% { transform: translateY(-18px) rotate(-5deg) scale(1.05); }
}

@keyframes float-7 {
    0%, 100% { transform: translateY(0) rotate(-15deg); }
    50% { transform: translateY(-22px) translateX(-12px) rotate(5deg); }
}

/* --- Tarjeta de Login Específica --- */
.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(68, 68, 68, 0.08), 0 1px 3px rgba(0,0,0,0.05);
}

/* --- Tipografía --- */
.login-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--brand-text);
    letter-spacing: -0.5px;
}

.login-description {
    font-size: 1.05rem;
    color: #5e5e5e;
    line-height: 1.6;
}

/* --- Elementos de Marca --- */
.login-welcome-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-line {
    width: 60px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-2));
    margin-bottom: 0.8rem;
    box-shadow: 0 4px 10px rgba(238, 120, 38, 0.2);
}

.welcome-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-orange);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- Botones --- */
.btn-brand {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-2));
    border: none;
    color: var(--brand-white);
    font-weight: 700;
    border-radius: 14px;
    padding: .92rem 1.45rem;
    box-shadow: 0 12px 24px rgba(238, 120, 38, 0.20);
    transition: all 0.2s ease-in-out;
}

.btn-brand:hover,
.btn-brand:focus {
    color: var(--brand-white);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(238, 120, 38, 0.30);
}

/* --- Silberbot Visual --- */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.silberbot-image {
    max-width: 90%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.15));
}

/* Pantallas tipo Laptop (1440px o menos) */
@media (max-width: 1440px) {
    .shape-1 { width: 200px; height: 200px; top: -2%; left: -4%; }
    .shape-2 { width: 140px; height: 140px; bottom: 2%; left: 2%; }
    .shape-3 { width: 180px; height: 180px; top: 2%; right: -2%; }
    .shape-4 { width: 150px; height: 150px; bottom: 2%; right: -2%; }
    .shape-5 { top: 15%; left: 25%; width: 70px; height: 70px; }
    .shape-6 { bottom: 5%; left: 28%; width: 100px; height: 100px; }
    .shape-7 { top: 8%; left: 55%; width: 120px; height: 120px; }

    .btn-brand {
        padding: .85rem 1rem;
        font-size: 0.95rem;
    }
}

/* Tablets (991px o menos) */
@media (max-width: 991.98px) {
    .shape-1, .shape-3, .shape-7 { display: none; }
    .shape-5 { left: auto; right: 10%; top: 15%; }
    .shape-6 { left: 10%; bottom: 5%; }
}

/* Móviles (575px o menos) */
@media (max-width: 575.98px) {
    .login-card { padding: 2rem !important; margin-left: 25px !important;}
    .login-title { font-size: 1.8rem; }
    .login-description { font-size: 0.95rem; }
    .shape-2, .shape-4, .shape-5, .shape-6 { opacity: 0.5; }
}
