@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap');

body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(120deg, #e8eaef 0%, #b5bbc6 100%);
    overflow: hidden;
    position: relative;
    font-family: 'Montserrat', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fondo blobs grises */
.background-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.21;
    z-index: 0;
    pointer-events: none;
    transition: width .3s, height .3s, left .3s, right .3s, top .3s;
}
.background-blob.left {
    width: 320px; height: 320px;
    left: 2vw; top: 60vh;
    background: #bcbfc9;
}
.background-blob.right {
    width: 280px; height: 280px;
    right: 4vw; top: 19vh;
    background: #c3c6d1;
}

/* Login Card */
.login-card {
    z-index: 1;
    background: rgba(255,255,255,0.96);
    border-radius: 28px;
    border: 2.2px solid rgba(150,150,150,0.10);
    box-shadow: 0 8px 48px 0 #b8bbc1a0, 0 2px 14px #c1cad811;
    padding: 56px 46px 40px 46px;
    max-width: 410px;
    width: 100%;
    text-align: center;
    position: relative;
    backdrop-filter: blur(17px);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 7vh auto 0 auto;
}

.login-avatar {
    background: linear-gradient(145deg, #d9dadf 70%, #e8eaec 100%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: -48px auto 25px auto;
    box-shadow: 0 2px 16px #dde1e7c0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-avatar svg {
    width: 36px;
    height: 36px;
    fill: #7e7f82;
    opacity: 0.88;
}

/* Brutal Título */
.login-card h1 {
    font-size: 2.25rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 900;
    margin-bottom: 32px;
    letter-spacing: 0.01em;
    line-height: 1.18;
    background: linear-gradient(90deg, #e0e1e3 5%, #787c87 40%, #191c20 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 6px 24px #b0b4ba50, 0 2px 6px #fff8;
    animation: brutalFadeIn 1.1s cubic-bezier(.48,1.8,.51,1), brutalGradientMove 8s ease-in-out infinite alternate;
    background-size: 200% 100%;
}
@keyframes brutalFadeIn {
    from { opacity: 0; transform: translateY(34px) scale(.97);}
    to   { opacity: 1; transform: none;}
}
@keyframes brutalGradientMove {
    0% { background-position: 0% 50%;}
    100% { background-position: 100% 50%;}
}

.login-card label {
    display: block;
    color: #4a4a53;
    text-align: left;
    margin-bottom: 4px;
    font-size: 1.08em;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    padding: 15px 16px;
    border-radius: 10px;
    border: 1.8px solid #b8bbc1;
    background: rgba(245, 245, 245, 0.91);
    margin-bottom: 24px;
    font-size: 1.13em;
    box-shadow: 0 2px 8px #e0e0e41a;
    transition: border 0.16s, box-shadow 0.18s;
    font-weight: 600;
    color: #23242b;
}
.login-card input:focus {
    border: 2.2px solid #60636d;
    background: #f4f4f6;
    box-shadow: 0 2px 14px #9197a440;
    outline: none;
}

.login-card button {
    width: 100%;
    padding: 14px 0;
    border-radius: 14px;
    font-size: 1.18em;
    font-weight: 800;
    background: linear-gradient(95deg,#848789 0%,#bcbfc9 50%, #e8eaec 100%);
    color: #222;
    border: none;
    margin-top: 22px;
    margin-bottom: 8px;
    box-shadow: 0 2px 12px #bfc2c8;
    cursor: pointer;
    transition: background 0.14s, transform 0.13s, box-shadow 0.16s, color 0.12s;
    letter-spacing: 0.02em;
}
.login-card button:hover {
    background: linear-gradient(93deg,#60636d 0%, #b2b6bb 80%);
    color: #fff;
    transform: scale(1.03);
    box-shadow: 0 8px 28px #b3b9c580;
}

.alert.success {
    background: #e4fae4;
    color: #266b2b;
    border: 1.2px solid #aee3bb;
    border-radius: 7px;
    padding: 13px 20px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.03em;
}
.alert.error {
    background: #fdeaea;
    color: #aa2d2d;
    border: 1.2px solid #ffc0c0;
    border-radius: 7px;
    padding: 13px 20px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.03em;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .login-card { max-width: 92vw; padding: 34px 2vw 20px 2vw; }
    .background-blob.left {
        width: 180px; height: 180px;
        left: 2vw; top: 75vh;
    }
    .background-blob.right {
        width: 150px; height: 150px;
        right: 2vw; top: 18vh;
    }
    .login-avatar { width: 64px; height: 64px; }
    .login-avatar svg { width: 30px; height: 30px; }
}
@media (max-width: 500px) {
    .login-card { max-width: 99vw; padding: 19px 1vw 12px 1vw; }
    .login-card h1 { font-size: 1.33rem; margin-bottom: 19px;}
    .login-avatar { width: 48px; height: 48px; margin: -34px auto 13px auto;}
    .login-avatar svg { width: 21px; height: 21px; }
    .background-blob.left { width: 90px; height: 90px; top: 80vh;}
    .background-blob.right { width: 75px; height: 75px; top: 14vh;}
    .login-card button { font-size: 1em; }
}
