
/* ================= BASE CARD ================= */
.auth-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 10px;
    border: none;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    overflow: hidden;
}

/* ================= HEADER ================= */
.auth-header {
	display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #008060, #00664d);
    color: #fff;
    padding: 14px 16px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.auth-close-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    
    width: 42px;
    height: 42px;

    font-size: 28px;   /* 🔥 to rõ */
    font-weight: 700;
    line-height: 1;

    color: #fff;       /* trắng rõ */
	opacity: 1 !important;
	
    background: #00664d; /* cùng tone header nhưng đậm hơn */
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #fff; /* viền trắng để tách nền */
}

.auth-close-btn:hover {
    background: #004d3a;
}

/* ================= BODY ================= */
.auth-body {
	padding: 20px 20px;
}

/* ================= INPUT WRAPPER ================= */
.login-item-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.login-item-wrapper .form-control {
    width: 100%;
    height: 50px;
    padding-left: 40px;
    padding-right: 40px;
    border-radius: 6px;
}

/* ================= ICON ================= */
.auth-item-icon-left {
    position: absolute;
    font-size: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.auth-item-icon-right {
    position: absolute;
    font-size: 18px;
    padding: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.auth-item-icon-left {
    left: 12px;
    pointer-events: none;
}

.auth-item-icon-right {
    right: 12px;
    cursor: pointer;
}

.auth-item-icon-right:hover {
    color: #006B3F;
}

/* ================= PASSWORD RULES ================= */
.password-rules span.valid {
    color: #008C44;
}

.password-rules span.invalid {
    color: #C62828;
}

/* ================= LINK ================= */
.auth-modal .forgot-link:hover,
.auth-modal .signup-link:hover {
    color: #006B3F;
    text-decoration: underline;
}

/* ================= MOBILE FULLSCREEN MODAL ================= */
@media (max-width: 768px) {

    .auth-modal .modal-dialog {
        width: 100%;
        height: 100%;
        margin: 0;
        max-width: 100%;
    }

    .auth-modal .modal-content {
        height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    #signModalContent {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .auth-card {
        max-width: 100%;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
    }
    
        .auth-header {
        font-size: 20px;
        padding: 16px;
    }
    
        .login-item-wrapper .form-control {
        height: 52px;
        font-size: 16px; /* tránh zoom iOS */
    }
    
        .auth-item-icon-right {
        padding: 10px;
    }
    
    body.auth-modal-open {
	    position: fixed;
	    width: 100%;
	}
	
	.auth-header {
        position: sticky;
        top: 0;
        z-index: 10;
    }
}