﻿/* =======================
   MODAL BACKDROP
======================= */
.modal-backdrop.show {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* =======================
   CARD
======================= */
.hb-card {
    position: relative;
    background: #f9faf9;
    border-radius: 14px;
    padding: 30px 28px;
    border: 2px solid #0F6A3D;
    box-shadow: 0 18px 40px rgba(15, 106, 61, 0.35);
}

/* CLOSE BUTTON */
.hb-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: none;
    font-size: 22px;
    color: #555;
}

    .hb-close:hover {
        color: #0F6A3D;
    }

/* LOGO */
.hb-logo {
    height: 40px;
}

/* INPUTS */
.hb-input {
    border-radius: 10px;
    padding: 12px 18px;
    border: 1px solid #cfd8d3;
    font-size: 14px;
    background: #ffffff;
}

    .hb-input:focus {
        border-color: #0F6A3D;
        box-shadow: 0 0 0 0.15rem rgba(15, 106, 61, 0.25);
    }

/* PASSWORD EYE */
.hb-eye {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #0F6A3D;
    padding: 0;
}

    .hb-eye:hover {
        color: #0C5A34;
    }

    .hb-eye:focus {
        outline: none;
    }

/* =======================
   LOGIN BUTTON
======================= */
.hb-login-btn {
    background: linear-gradient(135deg, #0F6A3D, #0C5A34);
    color: #ffffff;
    font-weight: 600;
    border-radius: 30px;
    padding: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    /* Button hover/active/focus */
    .hb-login-btn:hover {
        box-shadow: 0 8px 20px rgba(15, 106, 61, 0.4);
    }

    .hb-login-btn:active {
        transform: scale(0.97);
    }

    .hb-login-btn:focus {
        outline: 2px solid #ffffff;
        outline-offset: 2px;
    }

/* Icon wrapper */
#spanLoginIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

/* Hover icon slide */
.hb-login-btn:hover #spanLoginIcon {
    transform: translateX(4px);
}

/* Loading state: slide + rotate icon */
.hb-login-btn.loading #spanLoginIcon {
    transform: translateX(8px) rotate(45deg);
}

    .hb-login-btn.loading #spanLoginIcon i {
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }

/* Button label fade during loading */
.hb-login-btn.loading .login-label {
    opacity: 0.5;
}

/* =======================
   SPINNER
======================= */
@keyframes spinner-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hb-login-btn .spinner-border.rotating-spinner {
    display: none; /* hidden by default */
    position: absolute;
    right: 10px;
    width: 1rem;
    height: 1rem;
    border-width: 2px;
    border-style: solid;
    border-color: white transparent white transparent;
    border-radius: 50%;
    animation: spinner-rotate 1s linear infinite;
}

.hb-login-btn.loading .spinner-border.rotating-spinner {
    display: inline-block !important;
    opacity: 1;
}

/* =======================
   TEXT & LINKS
======================= */
.hb-terms {
    font-size: 12px;
    color: #555;
}

    .hb-terms a {
        color: #0F6A3D;
        font-weight: 500;
    }

.hb-links {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

    .hb-links a {
        color: #0F6A3D;
        text-decoration: none;
        font-weight: 500;
    }

        .hb-links a:hover {
            text-decoration: underline;
        }

/* MODAL ERROR MESSAGE */
.modal .error-message {
    display: none;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
    color: #6b2f2f;
    background: none;
    border: none;
    margin: 0 0 6px;
    padding: 0;
    text-align: left;
}
