﻿/* --- PREMIUM REGISTER FORM --- */

.register-form-wrapper {
    background: #fff;
    /* Nếu form đứng một mình thì thêm padding/shadow, nếu nằm trong card thì bỏ */
    /* padding: 20px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); */
}

/* 1. Custom Floating Labels */
.custom-floating .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background-color: #f8fafc; /* Nền xám rất nhạt */
    height: 55px; /* Chiều cao chuẩn */
    padding-left: 45px; /* Chừa chỗ cho icon nếu cần chỉnh sâu hơn */
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
}

    /* Hiệu ứng Focus */
    .custom-floating .form-control:focus {
        background-color: #fff;
        border-color: var(--primary-color, #0046ba);
        box-shadow: 0 0 0 4px rgba(0, 70, 186, 0.1); /* Glow nhẹ */
    }

/* Label Style */
.custom-floating label {
    padding-left: 15px; /* Căn chỉnh label */
    color: #64748b;
}

    /* Icon trong Label (Trick để icon trượt cùng text) */
    .custom-floating label i {
        transition: color 0.3s;
    }

.custom-floating .form-control:focus ~ label i,
.custom-floating .form-control:not(:placeholder-shown) ~ label i {
    color: var(--primary-color, #0046ba);
}

/* 2. Submit Button Premium */
.btn-register-submit {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color, #0046ba) 0%, #0060ff 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    height: 54px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 20px rgba(0, 70, 186, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-register-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 30px rgba(0, 70, 186, 0.4);
        color: #fff;
        padding-right: 20px; /* Tạo hiệu ứng đẩy icon */
    }

.btn-text {
    position: relative;
    z-index: 2;
    margin-right: 10px;
}

.btn-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
}

.btn-register-submit:hover .btn-icon {
    transform: translateX(5px) scale(1.1); /* Icon bay sang phải */
}

/* Hiệu ứng Shine (Bóng loáng) chạy qua nút */
.btn-register-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: none;
}

.btn-register-submit:hover::after {
    left: 200%;
    transition: left 0.7s ease-in-out;
}

/* 3. Validation Styles (Nếu dùng JS validate) */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none; /* Bỏ icon X mặc định của Bootstrap cho đẹp */
}

.invalid-feedback {
    font-size: 12px;
    margin-top: 5px;
    margin-left: 5px;
}
