/* Login Page Styles - Brand Colors (Taman Kreativitas) */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* Brand Colors: Deep Green to a softer Sage/Teal */
    /* Exact logo green feel but deepened for background ease-of-use */
    background: linear-gradient(135deg, #1a4731 0%, #2f7a55 100%);
    position: relative;
}

/* Animated background pattern */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.05);
    background-image:
        radial-gradient(at 10% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(at 90% 90%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow:
        0 20px 40px -10px rgba(20, 60, 40, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: slideUp 0.6s ease-out;
    border: 1px solid #e1e7e4;
    /* Subtle greenish-grey border */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.login-logo img {
    max-width: 180px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a4731;
    /* Brand Dark Green */
    margin: 0 0 8px;
    letter-spacing: -0.025em;
}

.login-subtitle {
    font-size: 15px;
    color: #526b5d;
    /* Muted Green-Grey */
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c4a3b;
    /* Dark Green-Grey */
    margin-bottom: 8px;
}

.form-control {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 400;
    color: #1a1a2e;
    background-color: #ffffff;
    border: 1px solid #cfdcdf;
    border-radius: 8px;
    transition: all 0.2s ease;
    outline: none;
}

.form-control:hover {
    border-color: #9cb0a6;
}

.form-control:focus {
    border-color: #2f7a55;
    /* Brand Green */
    box-shadow: 0 0 0 4px rgba(47, 122, 85, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

/* Remember me checkbox styling */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 1px solid #cfdcdf;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    accent-color: #2f7a55;
    /* Brand Green */
}

.form-check-input:checked {
    background-color: #2f7a55;
    border-color: #2f7a55;
}

.form-check-label {
    font-size: 14px;
    color: #526b5d;
    cursor: pointer;
    user-select: none;
}

/* Login button */
.btn-login {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #2f7a55;
    /* Brand Green */
    background-image: linear-gradient(to right, #2f7a55, #3da06e);
    /* Green Gradient */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(47, 122, 85, 0.25);
}

.btn-login:hover {
    background-image: linear-gradient(to right, #256646, #2f7a55);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(47, 122, 85, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* Loading State */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error messages */
.invalid-feedback,
.help-block {
    font-size: 13px;
    color: #dc2626;
    margin-top: 6px;
}

.has-error .form-control {
    border-color: #dc2626;
}

/* Footer text */
.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.login-footer-text {
    font-size: 13px;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .login-title {
        font-size: 24px;
    }
}