﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1e3c72;
    --primary-light: #2a5298;
    --secondary: #4facfe;
    --accent: #00f2fe;
    --success: #43e97b;
    --danger: #ff6b6b;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --gray: #f5f5f5;
    --border: #ddd;
}

body {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--success);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: var(--danger);
    bottom: 20%;
    left: 5%;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.login-container {
    width: 100%;
    max-width: 420px;
    z-index: 1;
    position: relative;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .login-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    }

.brand-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 30px 20px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

    .brand-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
        background-size: cover;
    }

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.logo-icon {
    font-size: 32px;
    margin-right: 10px;
    color: var(--secondary);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.maju {
    color: var(--white);
}

.e {
    color: var(--secondary);
    font-weight: 800;
}

.invoice {
    color: var(--white);
}

.company-title {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 5px;
    position: relative;
    z-index: 1;
}

.login-form-section {
    padding: 30px;
}

.welcome-text {
    text-align: center;
    margin-bottom: 25px;
}

.welcome-title {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 5px;
}

.welcome-sub {
    color: var(--text-light);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--primary);
    font-size: 16px;
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: var(--gray);
    position: relative;
    z-index: 1;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(30, 60, 114, 0.2);
        background: var(--white);
    }

.password-toggle {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: var(--text-light);
    z-index: 2;
    transition: color 0.3s;
}

    .password-toggle:hover {
        color: var(--primary);
    }

.forgot-password {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    font-weight: 500;
}

    .forgot-password:hover {
        color: var(--secondary);
        text-decoration: underline;
    }

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

    .login-btn::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-btn:hover::before {
        left: 100%;
    }

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(30, 60, 114, 0.4);
    }

    .login-btn:active {
        transform: translateY(0);
    }

.error-message {
    background: #ffeaea;
    color: #d32f2f;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    border-left: 4px solid #d32f2f;
    animation: fadeIn 0.3s ease;
}

.success-message {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    border-left-color: #2e7d32 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer {
    margin-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

    .footer a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer a:hover {
            color: var(--white);
            text-decoration: underline;
        }

@media (max-width: 480px) {
    .login-container {
        max-width: 100%;
    }

    .login-form-section {
        padding: 25px 20px;
    }

    .brand-section {
        padding: 25px 15px;
    }

    .logo-text {
        font-size: 24px;
    }

    .logo-icon {
        font-size: 28px;
    }
}

.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Additional responsive adjustments */
@media (max-height: 700px) {
    body {
        padding: 10px;
    }

    .login-container {
        margin: 10px 0;
    }

    .footer {
        margin-top: 15px;
    }
}


