:root {
    --bg-light: #f4f7fa;
    --card-bg: #ffffff;
    --primary-blue: #e86b40;
    --primary-hover: #d1562d;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --border-color: #e3e6f0;
    --input-bg: #ffffff;
}

body {
    background: #fdfdfd;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-wrapper {
    display: flex;
    max-width: 820px;
    width: 90%;
    background-color: var(--card-bg);
    border-radius: 0.375rem;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

.login-form-side {
    flex: 1;
    padding: 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--card-bg);
}

.logo-container {
    margin-bottom: 1rem;
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.logo-img-3d {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.2));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: rotateY(0) translateZ(0);
}

.login-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.025em;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    font-size: 0.95rem;
    color: #334155;
    background-color: #f8fafc22;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 97, 242, 0.1);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* New Premium Captcha Layout */
.captcha-premium-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.captcha-num-box {
    width: 40px;
    height: 38px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.captcha-op,
.captcha-eq {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e86b40;
}

.captcha-final-input {
    width: 60px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    transition: all 0.3s;
}

.captcha-final-input:focus {
    border-color: #e86b40;
    outline: none;
    box-shadow: 0 0 0 4px rgba(232, 107, 64, 0.1);
}

.captcha-final-input.is-valid {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
    color: #059669 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;
}

.captcha-final-input.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.captcha-refresh-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #e86b40;
    background: transparent;
    color: #e86b40;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0.25rem;
}

.captcha-refresh-btn:hover {
    background: #e86b40;
    color: #ffffff;
    transform: rotate(30deg);
}

.fa-spin-fast {
    animation: fa-spin 0.5s linear infinite;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .captcha-premium-wrapper {
        gap: 0.4rem;
        justify-content: space-between;
    }

    .captcha-num-box,
    .captcha-final-input {
        width: 42px;
        height: 38px;
        font-size: 1rem;
    }

    .captcha-refresh-btn {
        width: 32px;
        height: 32px;
    }
}

.submit-btn {
    width: 100%;
    padding: 0.6rem;
    height: 44px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
}

.submit-btn:hover i {
    transform: translateX(-4px);
}

.submit-btn i {
    transition: transform 0.2s ease;
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

.footer-links {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.login-graphic-side {
    flex: 1;
    background-color: #fffafa;
    border-left: 1px solid #fff1f1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.slides-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.illustration-img {
    max-width: 60%;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.05));
}

.graphic-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.graphic-text {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 80%;
}

.learn-more-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.learn-more-btn:hover {
    background-color: var(--primary-blue);
    color: white;
}

.dots-container {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-blue);
    width: 20px;
    border-radius: 4px;
}

/* Alerts */
.error-alert {
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.error-content ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #c53030;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .login-wrapper {
        max-width: 800px;
    }
}

@media (max-width: 992px) {
    .login-wrapper {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
        background-color: #fdfdfd;
        align-items: center;
        display: flex;
        min-height: 100vh;
    }

    .login-wrapper {
        flex-direction: column;
        max-width: 480px;
        width: 95%;
        border-radius: 0.375rem;
        border: 1px solid #cbd5e1;
        min-height: auto;
        margin: auto;
    }

    .login-form-side {
        padding: 2.5rem 1.5rem;
        order: 1;
    }

    .login-graphic-side {
        display: flex;
        padding: 3rem 1.5rem;
        min-height: 350px;
        order: 2;
        border-left: none;
        border-top: 1px solid #fff1f1;
    }

    .illustration-img {
        max-width: 80%;
        margin-bottom: 1.5rem;
    }

    .logo-img-3d {
        height: 60px;
    }

    .login-heading {
        font-size: 1.5rem;
    }

    .dots-container {
        bottom: 1.5rem;
    }

    .graphic-text {
        margin-bottom: 0.5rem;
        max-width: 100%;
        font-size: 0.9rem;
    }

    .graphic-title {
        font-size: 1.15rem;
    }
}