
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0000FF 0%, #0047AB 30%, #008080 60%, #32CD32 100%);
}

a {
    text-decoration: none;
}

.login-wrapper {
    min-height: 100vh;
    position: relative;
}

.bg-abstract {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-abstract img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.85) 0%, rgba(0, 128, 128, 0.7) 40%, rgba(0, 71, 171, 0.8) 70%, rgba(0, 0, 255, 0.9) 100%);
    z-index: 1;
}

.content-layer {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

/* Floating shapes animation */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: floatShape 20s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: #32CD32;
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    background: #00BFFF;
    top: 50%;
    right: -30px;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    width: 250px;
    height: 250px;
    background: #40E0D0;
    bottom: -60px;
    left: 30%;
    animation-delay: -10s;
}

.shape:nth-child(4) {
    width: 180px;
    height: 180px;
    background: #90EE90;
    top: 20%;
    right: 20%;
    animation-delay: -15s;
}

.shape:nth-child(5) {
    width: 150px;
    height: 150px;
    background: #00FF7F;
    bottom: 20%;
    left: 10%;
    animation-delay: -7s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(30px, -30px) rotate(90deg) scale(1.1); }
    50% { transform: translate(-20px, 20px) rotate(180deg) scale(0.9); }
    75% { transform: translate(20px, 30px) rotate(270deg) scale(1.05); }
}

/* Login card */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 2.5rem 2rem;
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(-40px);
    max-width: 420px;
    width: 100%;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-card .welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0rem;
}

.login-card .welcome-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.form-floating-custom {
    position: relative;
    margin-bottom: 1rem;
}

.form-floating-custom .form-control {
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    background: #f5f7fa;
    padding: 0.75rem 1rem 0.75rem 3rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-floating-custom .form-control:focus {
    border-color: #0052D4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 82, 212, 0.1);
    outline: none;
}

.form-floating-custom .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1.1rem;
    z-index: 5;
    transition: color 0.3s ease;
}

.form-floating-custom .form-control:focus ~ .input-icon {
    color: #0052D4;
}

.form-floating-custom .toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #adb5bd;
    font-size: 1.1rem;
    z-index: 5;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.form-floating-custom .toggle-password:hover {
    color: #0052D4;
}

.captcha-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.captcha-canvas-wrapper {
    background: #f0f2f5;
    border-radius: 10px;
    padding: 4px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.captcha-canvas-wrapper canvas {
    border-radius: 8px;
    display: block;
}

.captcha-refresh {
    background: none;
    border: none;
    color: #0052D4;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
}

.captcha-refresh:hover {
    color: #003399;
    transform: translateY(-50%) rotate(180deg);
}

.captcha-input-wrapper {
    flex: 1;
}

.captcha-input-wrapper .form-control {
    height: 46px;
    border-radius: 10px;
    border: 2px solid #e8e8e8;
    background: #f5f7fa;
    padding: 0 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.captcha-input-wrapper .form-control:focus {
    border-color: #0052D4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 82, 212, 0.1);
}

.btn-login {
    width: 100%;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2B28AB 0%, #0052D4 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 82, 212, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-login .spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 2px;
    display: none;
}

.btn-login.loading .spinner-border {
    display: inline-block;
}

.btn-login.loading .btn-text {
    display: none;
}

.btn-google {
    width: 100%;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

/* Right side - Abstract art */
.right-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    padding: 1rem;
    width: 65%;
}

.abstract-art {
    width: 100%;
    max-width: 300px;
    animation: fadeInRight 1s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateX(40px);
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.company-brand {
    margin-top: 1rem;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-brand h2 {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.company-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    gap: 8px;
    margin-top: 1.5rem;
    justify-content: center;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

/* Alert styles */
.alert-custom {
    border-radius: 12px;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: none;
    animation: shakeAlert 0.5s ease;
}

@keyframes shakeAlert {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Particle canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 991.98px) {
    .right-panel {
        display: none;
    }

    .login-wrapper {
        justify-content: center;
        align-items: center;
        display: flex;
        padding: 1.5rem;
    }

    .login-card {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .login-card .welcome-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 575.98px) {
    .login-card {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
    }

    .login-card .welcome-title {
        font-size: 1.2rem;
    }

    .login-card .welcome-subtitle {
        font-size: 0.8rem;
    }

    .form-floating-custom .form-control {
        height: 48px;
        font-size: 0.85rem;
    }

    .btn-login, .btn-google {
        height: 46px;
        font-size: 0.85rem;
    }
}

/* Animations for input focus */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 82, 212, 0.3); }
    70% { box-shadow: 0 0 0 8px rgba(0, 82, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 82, 212, 0); }
}

.form-control:focus {
    animation: pulse 0.6s ease;
}

/* Success checkmark animation */
@keyframes checkmark {
    0% { stroke-dashoffset: 50; }
    100% { stroke-dashoffset: 0; }
}

/* Tooltip */
.tooltip-custom {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.captcha-canvas-wrapper:hover .tooltip-custom {
    opacity: 1;
}
