:root {
    --primary: #eb7613;
    --primary-dark: #c09e5e;
    --primary-light: #f5a745;
    --secondary: #013d21;
    --secondary-light: #1a5a37;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --neutral-50: #fafbfc;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --radius: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-image: url('/gedung_uca.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: var(--neutral-900);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}
@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-8px);
    }
    40% {
        transform: translateX(8px);
    }
    60% {
        transform: translateX(-6px);
    }
    80% {
        transform: translateX(6px);
    }
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 50%, var(--primary) 100%);
    color: white;
    padding: 18px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
}
.logo-image {
    width: 56px;
    height: 56px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 26px;
    object-fit: cover;
}
.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.logo-text .app-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.logo-text .app-subtitle {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}
.btn-header {
    padding: 9px 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
}
.btn-header:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

/* ===== PAGE LAYOUT ===== */
.page-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 60px;
    animation: fadeIn 0.5s ease-out;
}

/* ===== LOGIN WRAPPER ===== */
.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 940px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 16px 56px rgba(0, 0, 0, 0.14),
        0 2px 8px rgba(0, 0, 0, 0.06);
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LEFT PANEL ===== */
.left-panel {
    flex: 1;
    background: linear-gradient(160deg, var(--secondary) 0%, var(--secondary-light) 55%, #2d7a4f 100%);
    color: white;
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 580px;
}
.left-panel::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -120px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}
.left-panel::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(235, 118, 19, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -60px;
    left: -60px;
    animation: float 10s ease-in-out infinite reverse;
}
.left-content {
    position: relative;
    z-index: 1;
}
.left-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 52px;
}
.left-brand-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    object-fit: cover;
}
.left-brand-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.left-headline {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}
.left-sub {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 40px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.feature-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 14px;
}
.feature-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
}
.feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.feature-text {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.92;
    line-height: 1.4;
}

.left-footer {
    position: relative;
    z-index: 1;
    font-size: 12px;
    opacity: 0.6;
    font-weight: 500;
}

/* ===== RIGHT PANEL (form) ===== */
.right-panel {
    width: 420px;
    flex-shrink: 0;
    background: white;
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== FORM HEADING ===== */
.form-heading {
    margin-bottom: 32px;
}
.form-heading h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--neutral-900);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.form-heading p {
    font-size: 14px;
    color: var(--neutral-500);
    font-weight: 500;
}

/* ===== ALERT ===== */
.alert {
    display: none;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    align-items: center;
    gap: 8px;
}
.alert.show {
    display: flex;
    animation: fadeInUp 0.3s ease-out;
}
.alert.shake {
    animation: shake 0.4s ease-out;
}
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ===== FORM GROUPS ===== */
.form-group {
    margin-bottom: 20px;
}
.form-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral-700);
    letter-spacing: 0.2px;
}
.lupa-sandi {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
.lupa-sandi:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--neutral-300);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--neutral-900);
    background: var(--neutral-50);
    transition: all 0.25s ease;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(235, 118, 19, 0.13);
}
.form-group input.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}
.form-group input::placeholder {
    color: var(--neutral-400);
}

/* Input icon */
.input-icon-wrap {
    position: relative;
}
.input-icon-wrap input {
    padding-left: 42px;
}
.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--neutral-400);
    pointer-events: none;
}

/* Password toggle */
.input-pw-wrap {
    position: relative;
}
.input-pw-wrap input {
    padding-right: 46px;
}
.toggle-pw-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--neutral-400);
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}
.toggle-pw-btn:hover {
    color: var(--primary);
}

/* ===== REMEMBER ME ===== */
.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkbox-group input[type='checkbox'] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}
.checkbox-group label {
    font-size: 13px;
    color: var(--neutral-600);
    font-weight: 500;
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, #d06810 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition:
        width 0.6s ease,
        height 0.6s ease;
}
.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(235, 118, 19, 0.35);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline-primary {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

/* efek ripple tetap ada */
.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(235, 118, 19, 0.15);
    transform: translate(-50%, -50%);
    transition:
        width 0.6s ease,
        height 0.6s ease;
}

.btn-outline-primary:hover::before {
    width: 400px;
    height: 400px;
}

/* hover jadi filled */
.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary) 0%, #d06810 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(235, 118, 19, 0.35);
}

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

.btn-outline-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

/* ===== DIVIDER ===== */
.or-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    font-size: 12px;
    color: var(--neutral-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--neutral-200);
}

/* ===== SSO ===== */
.sso-btn {
    width: 100%;
    padding: 11px 16px;
    background: white;
    border: 1.5px solid var(--neutral-200);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    margin-bottom: 10px;
}
.sso-btn:hover {
    border-color: var(--neutral-300);
    background: var(--neutral-50);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ===== FOOTER LINKS ===== */
.footer-link {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--neutral-500);
}
.footer-link a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.footer-link a:hover {
    text-decoration: underline;
}

/* ===== RESEND VERIFICATION PASSWORD VIEW ===== */
.view {
    display: none;
}
.view.active {
    display: block;
    animation: fadeInUp 0.35s ease-out;
}

.back-btn {
    background: none;
    border: none;
    color: var(--neutral-500);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin-bottom: 24px;
    transition: color 0.2s;
}
.back-btn:hover {
    color: var(--primary);
}

.resend-verification-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(235, 118, 19, 0.12) 0%, rgba(1, 61, 33, 0.08) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
    border: 1px solid rgba(235, 118, 19, 0.18);
}
.resend-verification-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--neutral-900);
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}
.resend-verification-sub {
    font-size: 14px;
    color: var(--neutral-500);
    font-weight: 500;
    margin-bottom: 28px;
    line-height: 1.6;
}

.link-show-resend-verification {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #991b1b;
    text-decoration: underline;
}

/* Success state for resend-verification */
.sent-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    animation: fadeInUp 0.4s ease-out;
}
.sent-icon {
    font-size: 36px;
    margin-bottom: 10px;
}
.sent-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #166534;
    margin-bottom: 6px;
}
.sent-card p {
    font-size: 13px;
    color: #166534;
    line-height: 1.6;
}

/*  */

/* ===== FOOTER ===== */
footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 18px;
    font-size: 12px;
    font-weight: 500;
}
footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}
footer a:hover {
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
    .left-panel {
        display: none;
    }
    .login-wrapper {
        max-width: 480px;
        border-radius: 20px;
    }
    .right-panel {
        width: 100%;
        padding: 40px 28px;
    }
}
@media (max-width: 480px) {
    .right-panel {
        padding: 32px 22px;
    }
    .page-body {
        padding: 28px 16px 48px;
    }
    header .header-right {
        display: none;
    }
    .logo-text .app-name {
        font-size: 15px;
        width: 280px;
    }
}
