/* ======    AUTH PAGES STYLES - TÁI SỬ DỤNG CHO LOGIN, REGISTER, RESET, EMAIL    ========== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&amp;display=swap');

/* ======    CONTAINER LAYOUT - Layout chính cho tất cả trang auth    ========== */
.auth-main-container {
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.auth-content-wrapper {
    width: 100%;
    width: 32vw;
}

.auth-form-container {
    background-color: #ffffff;
    padding: 2vw;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ======    LOGO SECTION - Phần logo cho tất cả trang auth    ========== */
.auth-logo-container {
    text-align: center;
    margin-bottom: 1vw;
    display: flex;
    justify-content: center;
    padding: 0.5vw;
}


.auth-logo {
    width: 8vw;
    height: 8vw;
    border-radius: 50%;
    object-fit: cover;
    background-color: #065c2e;
    padding: 10px;
}

/* ======    HEADING SECTION - Tiêu đề và mô tả cho tất cả trang auth    ========== */
.auth-heading-section {
    text-align: center;
    margin-bottom: 1.2vw;
}

.auth-main-heading {
    color: #000000;
    font-weight: bold;
    font-size: 1.2vw;
    margin-bottom: 1vw;
}

.auth-sub-heading {
    color: #666;
    font-size: 0.8vw;
}

/* ======    PORTAL INFO - Styles cho thông tin portal    ========== */
.portal-info p {
    text-align: left;
    margin-bottom: 1vw;
    padding: 0.5vw 0.8vw;
    border-left: 3px solid #065c2e;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.3vw;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: black;
}

.portal-info p:last-child {
    margin-bottom: 1.5vw;
}

/* ======    FORM STYLES - Styles cho form và input fields    ========== */
.auth-form-group {
    margin-bottom: 1vw;
}

.auth-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 1vw;
}

.auth-form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.8vw;
    transition: all 0.3s ease;
}

/* ======    FORM FOCUS EFFECTS - Hiệu ứng khi focus vào input    ========== */
.form-control:focus {
    outline: none;
    border-color: #065c2e !important;
    box-shadow: 0 0 0 2px rgba(6, 92, 46, 0.1);
}

/* ======    BUTTON STYLES - Styles cho button submit    ========== */

.auth-footer-link {
    color: white !important;
}

.auth-button-container {
    text-align: center;
    margin-top: 1vw;
}
.btn-shine > a {
    color: white !important;
}

.btn-shine {
    background: linear-gradient(90deg, #044e27, #056633, #067f3f, #08974b);
    color: white;
    border: none;
    padding: 0.8vw 3vw;
    border-radius: 8px;
    font-weight: 600;
    font-size: 19px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-shine:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 92, 46, 0.3);
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.btn-shine:hover::after {
    left: 100%;
}

/* ======    LOGO SHINE EFFECT - Hiệu ứng shine cho logo    ========== */
.img-shine {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0) 100%
  );
  transition: all 0.6s;
  z-index: 1;
}

.img-shine:hover::after {
  left: 100%;
}

.img-shine img {
  display: block;
  transition: transform 0.3s ease-in;
}

.img-shine:hover img {
  transform: scale(1.1);
}

/* ======    FOOTER LINKS - Links ở cuối form (login/register links)    ========== */
.auth-footer-links {
    margin-top: 1vw;
    text-align: center;
    font-size: 0.8vw;
}

.auth-footer-text {
    color: #666;
    font-size: 0.8vw;
}

.auth-footer-link {
    color: #065c2e;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer-link-2 {
    color: #065c2e !important;
    text-decoration: none;
    font-weight: 600;
}

/* ======    COPYRIGHT FOOTER - Copyright text ở cuối trang    ========== */
.auth-copyright {
    margin-top: 0.5vw;
    margin-bottom: 0;
    text-align: center;
}

.auth-copyright-text {
    font-size: 0.7vw;
    color: #fff;
    margin-bottom: 0;
}

/* ======    REMEMBER ME & FORGOT PASSWORD - Chỉ dùng cho trang login    ========== */
.auth-remember-section {
    margin-top: 8px;
}

.auth-remember-label {
    font-size: 0.8vw;
}

.auth-forgot-link {
    display: block;
    text-align: right;
    margin-top: 8px;
    color: #065c2e;
    text-decoration: none;
    font-size: 0.8vw;
}

/* ======    RESPONSIVE DESIGN - Thiết kế responsive cho mobile    ========== */
@media (max-width: 992px) {

    p {
        font-size: 3.2vw;
        margin-bottom: 2vw;
    }

    .auth-content-wrapper {
        padding: 15px;
        width: 80vw;
    }

    .auth-form-container {
        padding: 10vw 10vw;
        margin-bottom: 3vw;
        border-radius: 4vw;
    }

    .auth-logo {
        width: 30vw;
        height: 30vw
    }

    .auth-logo-container {
        padding: 3vw;
        margin-bottom: 3vw;
    }

    .btn-shine {
        width: 100%;
    }

    .auth-main-heading {
        font-size: 4vw;
        margin-bottom: 2vw;
    }

    .auth-sub-heading {
        font-size: 3.6vw;
        text-wrap: balance;
        margin: 0 -3vw 3vw;
    }

    .auth-form-label {
        font-size: 3.6vw;
        margin-bottom: 2vw;
    }

    .auth-form-input {
        font-size: 3.6vw;
        margin-bottom: 2vw;
    }

    .auth-remember-section, .auth-remember-label {
        font-size: 3.2vw;
        margin-bottom: 3vw;
    }

    .btn-shine {
        font-size: 3.2vw;
        margin-bottom: 2vw;
        padding: 2vw 6vw;
    }

    .auth-footer-links {
        font-size: 3.6vw;
        margin-bottom: 2vw;
    }

    .auth-forgot-link {
        font-size: 3.4vw;
        margin-top: 2vw;
        margin-bottom: 1vw;
    }

    .auth-copyright-text {
        font-size: 3.2vw;
        text-wrap: balance;
    }

    .portal-info p {
        font-size: 2.5vw;
        margin: 0 -5vw 2vw;
        border-left: 10px solid #065c2e;
        padding: 1vw 3vw;
        border-radius: 0.8vw;font-size: 2.5vw;
    }

    .portal-info p:last-child {
        margin-bottom: 5vw;
    }

    .auth-footer-text {
        font-size: 3.2vw;
    }

}

/* ======    HIDDEN FIELDS - Fields ẩn (dùng cho reset password)    ========== */
.auth-hidden-field {
    display: none;
}

/* ======    ERROR MESSAGES - Styles cho thông báo lỗi    ========== */
.auth-error-message {
    color: #dc3545;
    font-size: 0.8vw;
    margin-top: 5px;
}

/* ======    SUCCESS MESSAGES - Styles cho thông báo thành công    ========== */
.auth-success-message {
    color: #28a745;
    font-size: 0.8vw;
    margin-top: 5px;
}
