/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* BODY */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 40%, #0d6efd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -40%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 16, 242, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* BACK TO HOME */
.btn-back-home {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateX(-3px);
}

/* LOGIN WRAPPER */
.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    animation: fadeSlideUp 0.7s ease-out;
}

/* LOGIN CARD */
.login-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 32px 32px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* HEADER */
.login-header {
    margin-bottom: 28px;
}

.login-logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.25);
    border: 3px solid #e8f0fe;
}

.login-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-title {
    font-weight: 800;
    font-size: 1.3rem;
    color: #1a2a4a;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 0.85rem;
    color: #8a94a6;
    font-weight: 400;
}

/* FORM */
.login-form {
    margin-bottom: 0;
}

.input-group-custom {
    position: relative;
    margin-bottom: 16px;
}

.input-group-custom .form-control {
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    padding: 14px 46px 14px 46px;
    font-size: 0.95rem;
    background: #f8f9fc;
    transition: all 0.25s ease;
    color: #1a2a4a;
}

.input-group-custom .form-control::placeholder {
    color: #adb5c4;
}

.input-group-custom .form-control:focus {
    border-color: #0d6efd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a94a6;
    font-size: 1.1rem;
    z-index: 2;
    pointer-events: none;
}

.input-icon-right {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a94a6;
    font-size: 1.1rem;
    z-index: 2;
    cursor: pointer;
    transition: color 0.2s;
}

.input-icon-right:hover {
    color: #0d6efd;
}

/* BUTTONS */
.btn-login {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.35);
    margin-top: 4px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0b5ed7, #084298);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(13, 110, 253, 0.45);
    color: #fff;
}

.btn-login:active {
    transform: translateY(0);
}

/* DIVIDER */
.login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 12px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8ecf0;
}

.login-divider span {
    font-size: 0.8rem;
    color: #adb5c4;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* WHATSAPP BUTTON */
.btn-wa {
    background: linear-gradient(135deg, #25d366, #128c48);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
    background: linear-gradient(135deg, #22c55e, #0f7a3c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #fff;
}

.btn-wa:active {
    transform: translateY(0);
}

.login-hint {
    font-size: 0.78rem;
    color: #adb5c4;
    margin-top: 10px;
    margin-bottom: 0;
}

/* FOOTER */
.login-footer {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 20px;
}

/* MODAL */
.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
}

/* ANIMATIONS */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 576px) {
    .login-wrapper {
        padding: 16px;
    }

    .login-card {
        padding: 32px 24px 24px;
        border-radius: 20px;
    }

    .login-logo-circle {
        width: 68px;
        height: 68px;
    }

    .login-title {
        font-size: 1.15rem;
    }

    .btn-back-home {
        top: 12px;
        left: 12px;
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}
