/* =====================================================
   FMS LPG SULAWESI - LOGIN PAGE STYLES
   ===================================================== */

:root {
    --primary: #0073fe;
    --primary-dark: #005ecc;
    --primary-light: #e5f1ff;
    --secondary: #fd0017;
    --secondary-dark: #cc0012;
    --accent: #9fe400;
    --accent-dark: #7eb300;
    --text-dark: #1a1a2e;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 115, 254, 0.15);
    --shadow-lg: 0 25px 50px rgba(0, 115, 254, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 100%, var(--primary-dark) 100%, #003a80 100%);
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* =====================================================
   ANIMATED BACKGROUND
   ===================================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bg-animation span {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    animation: float 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

.bg-animation span:nth-child(1) {
    left: 10%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
    animation-duration: 20s;
}

.bg-animation span:nth-child(2) {
    left: 20%;
    width: 40px;
    height: 40px;
    animation-delay: 2s;
    animation-duration: 25s;
}

.bg-animation span:nth-child(3) {
    left: 35%;
    width: 60px;
    height: 60px;
    animation-delay: 4s;
    animation-duration: 22s;
}

.bg-animation span:nth-child(4) {
    left: 50%;
    width: 100px;
    height: 100px;
    animation-delay: 0s;
    animation-duration: 30s;
}

.bg-animation span:nth-child(5) {
    left: 65%;
    width: 50px;
    height: 50px;
    animation-delay: 3s;
    animation-duration: 18s;
}

.bg-animation span:nth-child(6) {
    left: 80%;
    width: 70px;
    height: 70px;
    animation-delay: 5s;
    animation-duration: 28s;
}

.bg-animation span:nth-child(7) {
    left: 90%;
    width: 30px;
    height: 30px;
    animation-delay: 7s;
    animation-duration: 20s;
}

.bg-animation span:nth-child(8) {
    left: 5%;
    width: 90px;
    height: 90px;
    animation-delay: 1s;
    animation-duration: 35s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-1500px) rotate(720deg);
        opacity: 0;
    }
}

/* =====================================================
   GLOWING ORBS
   ===================================================== */
/*
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: pulse-glow 4s ease-in-out infinite alternate;
    pointer-events: none;
}

.glow-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    top: -100px;
    right: -100px;
}

.glow-orb.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}
*/
/* =====================================================
   LOGIN CONTAINER
   ===================================================== */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   LOGIN CARD
   ===================================================== */
.login-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

/* =====================================================
   HEADER
   ===================================================== */
.login-header {
    text-align: center;
    padding: 40px 40px 30px;
    background: linear-gradient(180deg, var(--primary-light) 0%, transparent 100%);
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.logo {
    width: 280px;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    position: relative;
    animation: none;
}

.logo i {
    font-size: 42px;
    color: var(--white);
}

.logo .logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.logo-ring {
    display: none;
}

.login-header h1 {
    font-size: 23px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header h1 span {
    color: var(--primary);
}

.login-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* =====================================================
   FORM
   ===================================================== */
.login-body {
    padding: 10px 40px 40px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group.focused label {
    color: var(--primary);
}

.input-wrapper {
    position: relative;
}

.input-wrapper>i:first-of-type {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.form-control {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

/* Select with optgroup styling */
select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 45px;
    background-color: var(--bg-light);
}

select.form-control:focus {
    background-color: var(--white);
}

select.form-control option {
    padding: 12px;
    font-size: 14px;
}

select.form-control optgroup {
    font-weight: 700;
    color: var(--primary);
    background: var(--bg-light);
    padding: 8px 0;
}

select.form-control optgroup option {
    font-weight: 400;
    color: var(--text-dark);
    padding-left: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 115, 254, 0.1);
}

.input-wrapper:focus-within>i:first-of-type {
    color: var(--primary);
}

/* Select styling - simple and clean */
select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 45px;
    background-color: var(--bg-light);
}

select.form-control:focus {
    background-color: var(--white);
}

/* Custom arrow for select */
.input-wrapper .select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    font-size: 20px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within .select-arrow {
    color: var(--primary);
}

/* =====================================================
   PASSWORD TOGGLE
   ===================================================== */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 1;
    padding: 5px;
}

.password-toggle:hover {
    color: var(--primary);
}

/* =====================================================
   ALERT
   ===================================================== */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: var(--secondary-dark);
    border: 1px solid #fecaca;
}

.alert-danger i {
    font-size: 20px;
    color: var(--secondary);
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-warning i {
    font-size: 20px;
    color: #f59e0b;
}

/* =====================================================
   BUTTON
   ===================================================== */
.btn-login {
    width: 100%;
    padding: 16px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 115, 254, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-login::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 ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 115, 254, 0.5);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(-1px);
}

.btn-login i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-login:hover i {
    transform: translateX(5px);
}

/* Loading state */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-login.loading i {
    animation: spin 1s linear infinite;
}

/* =====================================================
   TIME DISPLAY
   ===================================================== */
.time-display {
    text-align: center;
    margin-top: 20px;
    padding: 12px 20px;
    background: var(--bg-light);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.time-display i {
    color: var(--primary);
    margin-right: 8px;
}

.time-display #clock {
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
}

/* =====================================================
   FOOTER
   ===================================================== */
.login-footer {
    text-align: center;
    padding: 20px 40px 30px;
    border-top: 1px solid #f1f5f9;
}

.login-footer p {
    font-size: 13px;
    color: var(--text-muted);
}

.login-footer strong {
    color: var(--secondary);
    font-weight: 700;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 480px) {
    body {
        padding: 20px 15px;
    }

    .login-header,
    .login-body,
    .login-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .login-header {
        padding-top: 30px;
        padding-bottom: 20px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .logo {
        width: 180px;
        height: auto;
    }

    .logo i {
        font-size: 32px;
    }

    .form-control {
        padding: 14px 14px 14px 45px;
        font-size: 14px;
    }

    .btn-login {
        padding: 14px 24px;
        font-size: 14px;
    }
}

@media (max-height: 700px) {
    body {
        padding: 20px;
    }

    .login-header {
        padding: 25px 40px 20px;
    }

    .logo-wrapper {
        margin-bottom: 8px;
    }

    .logo {
        width: 160px;
        height: auto;
    }

    .logo i {
        font-size: 32px;
    }

    .logo .logo-img {
        width: 100%;
        height: auto;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .login-body {
        padding: 10px 40px 30px;
    }

    .login-footer {
        padding: 15px 40px 20px;
    }
}