/* ============================================
   ESCOLINK - Dynamic Login Styles
   Uses CSS variables from contadores.css
   ============================================ */

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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

#vanta-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 430px;
    max-width: 94vw;
}

.login-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    padding: 40px 36px 0 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.login-logo-wrapper {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo-wrapper img {
    width: 180px;
    max-width: 65%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4)); }
    50%      { filter: drop-shadow(0 4px 24px rgba(0, 122, 122, 0.5)); }
}

.form-title {
    text-align: center;
    color: var(--bs-gray-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 26px;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-group label {
    display: block;
    color: rgba(244, 246, 247, 0.85);
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.4px;
    transition: color 0.3s ease;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--bs-gray-light);
    font-size: 1rem;
    transition: all 0.35s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--bs-cyan-dark);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 22px rgba(0, 122, 122, 0.18);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    transition: color 0.3s ease;
}

.form-group input:focus::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 50px !important;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 6px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--bs-cyan-dark);
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.remember-row input[type="checkbox"] {
    width: 19px;
    height: 19px;
    accent-color: var(--bs-cyan-dark);
    cursor: pointer;
}

.remember-row label {
    color: rgba(244, 246, 247, 0.85);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--bs-indigo-dark), var(--bs-purple-dark));
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bs-purple-dark), var(--bs-cyan-dark));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-submit:hover::after {
    opacity: 1;
}

.btn-submit span {
    position: relative;
    z-index: 1;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(93, 63, 211, 0.45);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(93, 63, 211, 0.3);
}

.error-message {
    color: var(--bs-magenta-light);
    font-size: 0.82rem;
    margin-top: 6px;
    padding-left: 4px;
    animation: shakeErr 0.45s ease;
}

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

.made-by-section {
    margin: 28px -36px 0 -36px;
    padding: 18px 36px;
    background: rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.made-by-section small {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.78rem;
    line-height: 1.6;
}

.made-by-section .eagle-link-footer {
    font-family: 'Sparose', sans-serif !important;
    font-size: 14px;
    color: var(--bs-gray-light) !important;
    text-decoration: none !important;
    font-weight: normal;
    transition: color 0.3s ease;
}

.made-by-section .eagle-link-footer:hover {
    color: var(--bs-cyan-dark) !important;
}

.made-by-section img {
    height: 20px;
    vertical-align: middle;
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px 0 20px;
        border-radius: 22px;
    }

    .login-logo-wrapper img {
        width: 150px;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .btn-submit {
        padding: 13px;
        font-size: 1rem;
    }

    .made-by-section {
        margin: 24px -20px 0 -20px;
        padding: 16px 20px;
    }
}
