.xTech-center-gnut {
    float: inherit;
    margin: auto;
}


.ptb150 {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 20% 50%, rgba(255, 68, 68, 0.15), rgba(0, 0, 0, 0.4));
    position: relative;
}

/* Thêm hiệu ứng background động */
.ptb150::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="50" cy="50" r="40" fill="rgba(255,68,68,0.05)"/><circle cx="150" cy="120" r="60" fill="rgba(255,68,68,0.03)"/><circle cx="100" cy="180" r="30" fill="rgba(255,68,68,0.04)"/></svg>') repeat;
    opacity: 0.5;
    pointer-events: none;
}

.ask-form {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 45px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hiệu ứng ánh sáng di chuyển */
.ask-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: shimmer 8s infinite linear;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translate(-30%, -30%) rotate(0deg);
    }
    50% {
        transform: translate(0%, 0%) rotate(5deg);
    }
    100% {
        transform: translate(-30%, -30%) rotate(0deg);
    }
}

.ask-form:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 68, 68, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.input-wrap {
    margin-bottom: 25px;
}

.input-wrap label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
}

.input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.input-wrap input::placeholder {
    color: #999;
    font-weight: 400;
    font-size: 14px;
}

.input-wrap input:focus {
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 68, 68, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Captcha styling - Dùng chung cho cả đăng nhập và đăng ký */
.captcha-wrapper {
    margin-bottom: 30px;
}

.captcha-wrapper label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.captcha-image {
    margin-bottom: 12px;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.captcha-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#imgcaptcha {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: block;
}

#captcha {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#captcha::placeholder {
    color: #999;
    font-weight: 400;
}

#captcha:focus {
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 68, 68, 0.2);
    transform: translateY(-1px);
}

/* Style cho captcha-row (dùng cho đăng ký) */
.captcha-row {
    margin-bottom: 30px;
}

.captcha-row .captcha-image {
    margin-bottom: 12px;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.captcha-row .captcha-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.captcha-row .captcha-image img {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: block;
}

.captcha-row .captcha-input input {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.captcha-row .captcha-input input::placeholder {
    color: #999;
    font-weight: 400;
}

.captcha-row .captcha-input input:focus {
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 68, 68, 0.2);
    transform: translateY(-1px);
}

/* Button styling */
.gradient {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.85), rgba(200, 50, 50, 0.9));
    backdrop-filter: blur(4px);
    color: #fff !important;
    border: none;
    height: 52px;
    line-height: 52px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.gradient:hover::before {
    left: 100%;
}

.gradient:hover {
    background: linear-gradient(135deg, rgb(255, 68, 68), rgb(220, 40, 40));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.4);
}

.gradient:active {
    transform: translateY(1px);
}

.gradient:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.border-btn {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff !important;
    height: 52px;
    line-height: 49px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border-radius: 14px;
    cursor: pointer;
}

.border-btn:hover {
    background: rgba(255, 68, 68, 0.15);
    border-color: rgba(255, 68, 68, 0.6);
    transform: translateY(-2px);
    backdrop-filter: blur(12px);
}

.xTech-w100 {
    width: 100%;
}

.mb20 {
    margin-bottom: 20px;
}

.mt40 {
    margin-top: 40px;
}

.color-white {
    color: #fff !important;
}

.fsize-32 {
    font-size: 34px;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.fweight-700 {
    font-weight: 800;
}

.lheight-32 {
    line-height: 1.3;
}

.uppercase {
    text-transform: uppercase;
}

.text-center {
    text-align: center;
}

.color-5 {
    color: rgba(255, 255, 255, 0.7);
}

.plr50 {
    padding-left: 50px;
    padding-right: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .ask-form {
        padding: 30px 25px;
    }

    .fsize-32 {
        font-size: 26px;
    }

    .ptb150 {
        padding: 60px 0;
    }
    
    .input-wrap input,
    #captcha,
    .captcha-row .captcha-input input,
    .gradient,
    .border-btn {
        height: 48px;
        line-height: 48px;
    }
    
    .border-btn {
        line-height: 45px;
    }
    
    .plr50 {
        padding-left: 25px;
        padding-right: 25px;
    }
}

/* Hiệu ứng loading cho nút */
.gradient.loading {
    pointer-events: none;
    opacity: 0.7;
}

.gradient.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Fix lỗi input autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.95) inset !important;
    -webkit-text-fill-color: #1a1a1a !important;
}x rgba(255, 255, 255, 0.95) inset !important;
    -webkit-text-fill-color: #1a1a1a !important;
}