/* Fuente elegante y fondo suave */
body,
html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", "Poppins", Arial, sans-serif;
    background-color: #1e213d;
}

.login-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 410px;
    width: 100%;
    margin: auto;
    animation: fadeIn 1s;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.login-logo img {
    height: 6rem;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.07));
}
.login-title {
    font-weight: 600;
    font-size: 1.4rem;
    color: #1e213d;
    margin-bottom: 1.5rem;
}
.form-label {
    font-weight: 500;
    color: #2d3a4a;
}
.input-group-text {
    background: #f3f6fa !important;
    border: none !important;
}
.form-control {
    background: #f3f6fa !important;
    border: none !important;
    font-size: 1rem;
    color: #2d3a4a;
}
.form-control:focus {
    box-shadow: 0 0 0 2px #4f8cff33;
}
.show-hide {
    cursor: pointer;
    transition: color 0.2s;
}
.show-hide.active ion-icon {
    color: #3358e6;
}
.btn-login {
    --primary-color: #645bff;
    --secondary-color: #fff;
    --hover-color: #111;
    --arrow-width: 10px;
    --arrow-stroke: 2px;
    box-sizing: border-box;
    border: 0;
    border-radius: 20px;
    color: var(--secondary-color);
    padding: 1em 1.8em;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    transition: 0.2s background;
    align-items: center;
    gap: 0.6em;
    font-weight: bold;
}

.btn-login .arrow-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-login .arrow {
    margin-top: 1px;
    width: var(--arrow-width);
    background: var(--primary-color);
    height: var(--arrow-stroke);
    position: relative;
    transition: 0.2s;
}

.btn-login .arrow::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    border: solid var(--secondary-color);
    border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
    display: inline-block;
    top: -3px;
    right: 3px;
    transition: 0.2s;
    padding: 3px;
    transform: rotate(-45deg);
}

.btn-login:hover {
    background-color: var(--hover-color);
}

.btn-login:hover .arrow {
    background: var(--secondary-color);
}

.btn-login:hover .arrow:before {
    right: 0;
}
.forgot-link {
    color: #7a8599;
    font-size: 0.97rem;
    text-decoration: none;
    transition: color 0.2s;
}
.forgot-link:hover {
    color: #3358e6;
}
.text-danger.small {
    font-size: 0.93rem;
    margin-top: 0.2rem;
    display: block;
}
@media (max-width: 480px) {
    .login-card {
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
        max-width: 98vw;
    }
}
