/* ============================================
 * LOGIN PAGE - SPLIT SCREEN DESIGN
 * Modern Split Layout with Enhanced UI/UX
 * Kategori: Per halaman auth
 * ============================================ */

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Body - Full Screen Layout */
body.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1A1A1A;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Main Layout Container */
.login-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ============================================
 * LEFT SECTION - HEADER/BRANDING
 * ============================================ */

.left-section {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Decorative Circles */
.left-section-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

/* Header Content */
.header-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
    color: #ffffff;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease 0.3s forwards;
    animation-fill-mode: forwards;
    will-change: opacity, transform;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Header Badge */
.header-badge {
    width: 80px;
    height: 80px;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    animation: badgeEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

@keyframes badgeEntrance {
    from {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.header-badge i {
    font-size: 36px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Main Title */
.main-title {
    margin: 0 0 24px 0;
    line-height: 1.2;
}

.title-text {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 48px;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease 0.7s forwards, textShine 3s linear infinite 1.3s;
    animation-fill-mode: forwards, none;
}

.title-text:first-child {
    margin-bottom: 8px;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content stays visible after animation */
.header-content,
.header-badge,
.title-text,
.title-divider,
.department-title,
.header-description,
.feature-list,
.feature-item {
    animation-fill-mode: forwards !important;
}

/* Title Divider */
.title-divider {
    width: 100px;
    height: 4px;
    margin: 0 0 24px 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0.4) 100%);
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    animation: dividerExpand 0.6s ease 0.9s forwards;
}

@keyframes dividerExpand {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Department Title */
.department-title {
    color: rgba(255, 255, 255, 0.95);
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 32px 0;
    line-height: 1.5;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease 1s forwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Header Description */
.header-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 40px 0;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease 1.1s forwards;
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease 1.2s forwards;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
}

.feature-item i {
    color: #ffffff;
    font-size: 18px;
    width: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
 * RIGHT SECTION - LOGIN FORM
 * ============================================ */

.right-section {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow-y: auto;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 480px;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s ease 0.5s forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Header */
.form-header {
    margin-bottom: 40px;
    text-align: center;
}

.form-title {
    color: #1A1A1A;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.form-subtitle {
    color: #6B7280;
    font-size: 15px;
    font-weight: 400;
    margin: 0;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Field */
.form-field {
    position: relative;
    width: 100%;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Input Icon */
.input-icon {
    position: absolute;
    left: 16px;
    color: #9CA3AF;
    font-size: 18px;
    z-index: 2;
    transition: color 0.3s ease;
    pointer-events: none;
}

.form-field.focused .input-icon {
    color: #6366F1;
}

/* Form Input */
.form-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: #ffffff;
    color: #1A1A1A;
    font-size: 15px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-input:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.form-input:hover:not(:focus) {
    border-color: #D1D5DB;
}

/* Floating Label */
.form-label {
    position: absolute;
    left: 48px;
    top: 16px;
    color: #9CA3AF;
    font-size: 15px;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    padding: 0 6px;
}

.form-field.focused .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -10px;
    left: 42px;
    font-size: 12px;
    color: #6366F1;
    font-weight: 500;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
    border-radius: 6px;
    z-index: 2;
}

.password-toggle:hover {
    color: #6366F1;
    background: rgba(99, 102, 241, 0.05);
}

.password-toggle i {
    font-size: 18px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6B7280;
    font-size: 14px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #6366F1;
}

.forgot-link {
    color: #6366F1;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #4F46E5;
    text-decoration: underline;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 16px 24px;
    margin-top: 8px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.login-button::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;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.login-button:hover::before {
    left: 100%;
}

.login-button:active {
    transform: translateY(0);
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.login-button:hover .button-icon {
    transform: translateX(4px);
}

/* Register Section */
.register-section {
    text-align: center;
    margin-top: 24px;
}

.register-text {
    color: #6B7280;
    font-size: 14px;
    margin: 0;
}

.signup-link {
    color: #6366F1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.signup-link:hover {
    color: #4F46E5;
    text-decoration: underline;
}

/* ============================================
 * RESPONSIVE DESIGN
 * ============================================ */

/* Tablet */
@media screen and (max-width: 1024px) {
    .left-section {
        padding: 40px 50px;
    }

    .title-text {
        font-size: 40px;
    }

    .right-section {
        padding: 40px;
    }

    .login-container {
        max-width: 420px;
    }
}

/* Mobile - Stack Layout */
@media screen and (max-width: 768px) {
    .login-layout {
        flex-direction: column;
    }

    .left-section {
        min-height: 40vh;
        padding: 40px 30px;
    }

    .header-content {
        max-width: 100%;
        text-align: center;
    }

    .title-text {
        font-size: 32px;
    }

    .department-title {
        font-size: 18px;
    }

    .header-description {
        font-size: 14px;
    }

    .feature-list {
        gap: 12px;
    }

    .feature-item {
        font-size: 14px;
    }

    .right-section {
        padding: 40px 30px;
        min-height: 60vh;
    }

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

    .form-title {
        font-size: 28px;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .left-section {
        min-height: 35vh;
        padding: 30px 20px;
    }

    .header-badge {
        width: 64px;
        height: 64px;
        margin-bottom: 24px;
    }

    .header-badge i {
        font-size: 28px;
    }

    .title-text {
        font-size: 24px;
    }

    .department-title {
        font-size: 16px;
    }

    .header-description {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .feature-item {
        font-size: 13px;
    }

    .right-section {
        padding: 30px 20px;
    }

    .form-title {
        font-size: 24px;
    }

    .form-subtitle {
        font-size: 14px;
    }

    .login-form {
        gap: 20px;
    }

    .form-input {
        padding: 14px 14px 14px 44px;
        font-size: 14px;
    }

    .input-icon {
        left: 14px;
        font-size: 16px;
    }

    .form-label {
        left: 44px;
        font-size: 14px;
    }

    .form-field.focused .form-label,
    .form-input:not(:placeholder-shown) + .form-label {
        left: 38px;
        font-size: 11px;
    }
}
