:root {
    --primary-color: #1a365d;
    --secondary-color: #2d3748;
    --accent-color: #3182ce;
    --success-color: #38a169;
    --warning-color: #dd6b20;
    --light-color: #f7fafc;
    --bg-color: #01416b;
    --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    --gradient-accent: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    line-height: 1.6;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.login-wrapper {
    display: flex;
    min-height: 85vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    background: white;
}

.login-left {
    flex: 1;
    min-width: 420px;
    background: var(--gradient-primary);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-right {
    flex: 1;
    min-width: 380px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-container {
    margin-bottom: 2.5rem;
    text-align: center;
}

.logo-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-medium);
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.welcome-subtitle {
    color: #718096;
    margin-bottom: 2.5rem;
}

.form-control {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.input-group-text {
    background-color: white;
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 0.85rem 1rem;
}

.form-control.with-icon {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.btn-login {
    background: var(--gradient-accent);
    border: none;
    border-radius: 12px;
    padding: 0.85rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider-text {
    padding: 0 1rem;
    color: #718096;
    font-size: 0.9rem;
}

.social-login .btn {
    border-radius: 12px;
    padding: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.social-login .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.footer-links {
    text-align: center;
    margin-top: 2rem;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.feature-list {
    list-style: none;
    margin-top: 2.5rem;
}

.feature-list li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
}

.feature-list i {
    color: var(--accent-color);
    margin-right: 1rem;
    margin-top: 0.2rem;
    font-size: 1.2rem;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    opacity: 0.1;
    border-radius: 50%;
    background: white;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 20%;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .login-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .login-left,
    .login-right {
        min-width: unset;
        padding: 2.5rem 2rem;
    }

    .login-left {
        border-radius: 15px 15px 0 0;
    }

    .login-right {
        border-radius: 0 0 15px 15px;
    }

    .brand-title {
        font-size: 2.2rem;
    }

    .welcome-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0.5rem;
        align-items: center;
        min-height: 100vh;
        height: auto;
    }

    .login-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .login-wrapper {
        min-height: auto;
        width: 100%;
    }

    .login-left {
        padding: 1.5rem 1.25rem;
    }

    .login-right {
        padding: 1.5rem 1.25rem;
        overflow: visible;
    }

    /* Sembunyikan fitur list di mobile */
    .feature-list {
        display: none;
    }

    /* Sembunyikan teks welcome di left panel */
    .login-left>.animate-fadeIn.delay-1>h2,
    .login-left>.animate-fadeIn.delay-1>p {
        display: none;
    }

    .logo-container {
        margin-bottom: 0;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }

    .logo-icon img {
        width: 80% !important;
    }

    .brand-title {
        font-size: 1.6rem;
        margin-bottom: 0.25rem;
    }

    .brand-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .welcome-title {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
    }

    .welcome-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .footer-links {
        margin-top: 1rem;
    }

    .footer-links p {
        font-size: 0.85rem;
    }

    /* Announcement mobile styles */
    .announcement-container {
        margin-top: 1rem;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .announcement-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    .announcement-text {
        font-size: 0.8rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 576px) {
    body {
        padding: 0.5rem;
        align-items: center;
    }

    .login-container {
        width: 100%;
        padding: 0 0.25rem;
    }

    .login-wrapper {
        border-radius: 12px;
        width: 100%;
    }

    .login-left {
        padding: 1.25rem 1rem;
        border-radius: 12px 12px 0 0;
    }

    .login-right {
        padding: 1.25rem 1rem;
        border-radius: 0 0 12px 12px;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem !important;
    }

    .brand-title {
        font-size: 1.4rem;
    }

    .brand-subtitle {
        font-size: 0.85rem;
    }

    .welcome-title {
        font-size: 1.25rem;
    }

    .welcome-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .form-control,
    .input-group-text {
        padding: 0.65rem 0.75rem;
        font-size: 0.9rem;
    }

    .btn-login {
        padding: 0.7rem;
        font-size: 1rem;
    }

    .mb-3 {
        margin-bottom: 0.75rem !important;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }

    /* Floating shapes - hide some on mobile */
    .shape-3 {
        display: none;
    }

    .shape-1 {
        width: 150px;
        height: 150px;
        top: -50px;
        right: -50px;
    }

    .shape-2 {
        width: 100px;
        height: 100px;
        bottom: -30px;
        left: -30px;
    }
}

@media (max-width: 400px) {

    .login-left,
    .login-right {
        padding: 1rem 0.85rem;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
    }

    .brand-title {
        font-size: 1.25rem;
    }

    .brand-subtitle {
        font-size: 0.8rem;
    }

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

    .welcome-subtitle {
        font-size: 0.8rem;
    }

    .announcement-container {
        flex-direction: column;
        text-align: center;
        padding: 0.65rem;
    }

    .announcement-content {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .announcement-track {
        animation: none;
    }

    .announcement-text {
        white-space: normal;
        text-align: center;
        padding: 0;
    }

    .announcement-text:last-child {
        display: none;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

.delay-4 {
    animation-delay: 0.4s;
    opacity: 0;
}

.delay-5 {
    animation-delay: 0.5s;
    opacity: 0;
}

/* Announcement/Informasi Berjalan Styles */
.announcement-container {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #fff8e1 0%, #fffbeb 100%);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.15);
}

.announcement-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.announcement-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.announcement-track {
    display: flex;
    width: max-content;
    animation: scrollAnnouncement 25s linear infinite;
}

.announcement-text {
    padding: 0 2rem;
    white-space: nowrap;
    color: #92400e;
    font-weight: 500;
    font-size: 0.9rem;
}

@keyframes scrollAnnouncement {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.announcement-container:hover .announcement-track {
    animation-play-state: paused;
}

/* Alert Styles Enhancement */
.alert {
    border-radius: 12px;
    border: none;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

/* Form Enhancements */
.form-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.input-group {
    box-shadow: var(--shadow-light);
    border-radius: 12px;
}

.input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.input-group:focus-within .input-group-text {
    border-color: var(--accent-color);
}

.btn-outline-secondary {
    border: 2px solid #e2e8f0;
    border-left: none;
    border-radius: 0 12px 12px 0;
    background: white;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #f7fafc;
    border-color: #e2e8f0;
    color: var(--accent-color);
}

/* Invalid Feedback  */
.invalid-feedback {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}