:root {
    --primary-gradient: linear-gradient(135deg, rgba(26, 54, 93, 0.562) 0%, rgba(42, 67, 101, 0.555) 100%);
    --accent-gradient: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    --font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: #f7fafc;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Modern Custom Preloader */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.85);
    backdrop-filter: blur(10px);
    z-index: 999999 !important;
    transition: opacity 0.3s ease;
}

.spinner-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    z-index: 10;
    object-fit: contain;
}

.spinner-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #3182ce;
    border-radius: 50%;
    animation: spin 1s infinite linear;
    box-sizing: border-box;
}

.spinner-text {
    color: #ffffff;
    margin-top: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 15px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Layout Architecture */
.left-cover {
    background-image: url('../dist/img/bg2.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    z-index: 1;
}

.left-cover-content {
    z-index: 10;
    max-width: 80%;
    position: relative;
}

.card-custom {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-control-custom {
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 15px;
    border: 1.5px solid #e2e8f0;
    background-color: #f8fafc;
    transition: all 0.25s ease;
}

.form-control-custom:focus {
    background-color: #ffffff;
    border-color: #3182ce;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.15);
    outline: none;
}

.btn-custom {
    background: var(--accent-gradient);
    border: none;
    color: #ffffff;
    padding: 14px;
    font-weight: 600;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.25);
}

.btn-custom:hover {
    background: linear-gradient(135deg, #2b6cb0 0%, #2b6cb0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.35);
}

.btn-custom:active {
    transform: translateY(0);
}

.btn-light-custom {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    transition: all 0.25s ease;
}

.btn-light-custom:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.btn-help {
    color: #4a5568;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-help:hover {
    color: #3182ce;
}

/* Hide Number Spinner Arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

.brand-logo {
    max-height: 48px;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.03);
}

.header-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 40px;
}

.invalid-feedback {
    font-size: 12.5px;
    margin-top: 6px;
    font-weight: 500;
}

/* Anti-Bot Captcha Styling */
.captcha-box-premium {
    height: 48px;
    width: 140px;
    overflow: hidden;
    position: relative;
    user-select: none;
    letter-spacing: 2px;
    background-image: linear-gradient(45deg, #111 25%, #222 25%, #222 50%, #111 50%, #111 75%, #222 75%, #222 100%);
    background-size: 12px 12px;
    border-radius: 12px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.captcha-line-1 {
    position: absolute;
    width: 120%;
    height: 2px;
    background: rgba(49, 130, 206, 0.45);
    transform: rotate(14deg);
    top: 22px;
    left: -10%;
    pointer-events: none;
}

.captcha-line-2 {
    position: absolute;
    width: 120%;
    height: 2px;
    background: rgba(49, 130, 206, 0.45);
    transform: rotate(-12deg);
    top: 26px;
    left: -10%;
    pointer-events: none;
}
