﻿/* =========================================
   SMART PARKING PORTAL
   LOGIN PAGE
   ========================================= */

:root {
    --bg-color: #e2e8f0;
    --text-color: #333333;
    --accent-orange: #f06518;
    --accent-orange-dark: #e0580d;
    --shadow-light: #ffffff;
    --shadow-dark: #b1b8c5;
}


/* =========================================
   RESET
   ========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}


/* =========================================
   PAGE
   ========================================= */

html,
body {
    width: 100%;
    min-height: 100%;
}


body {
    background-color: var(--bg-color);
    color: var(--text-color);
}


/* =========================================
   LOGIN PAGE
   ========================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}


/* =========================================
   LOGIN CARD
   ========================================= */

.login-card {
    background: var(--bg-color);
    width: 100%;
    max-width: 380px;
    padding: 35px 30px 40px;
    border-radius: 28px;
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
    text-align: center;
}


/* =========================================
   BRAND
   ========================================= */

.header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}


.logo-container {
    width: 100px; /* Adjust container size as needed */
    height: 100px;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.brand-title {
    font-size: 22px;
    color: #111111;
    font-weight: 800;
    letter-spacing: -0.5px;
}


    .brand-title span {
        color: var(--accent-orange);
    }


/* =========================================
   SECTION TITLE
   ========================================= */

.section-title {
    font-size: 20px;
    color: #444444;
    margin-bottom: 20px;
    font-weight: 500;
}


/* =========================================
   INPUT GROUP
   ========================================= */

.input-group {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    border-radius: 16px;
    background-color: var(--bg-color);
    box-shadow: inset 4px 4px 7px var(--shadow-dark), inset -4px -4px 7px var(--shadow-light);
    padding: 0 16px;
}


/* =========================================
   INPUT ICON
   ========================================= */

.input-icon {
    color: #888888;
    font-size: 16px;
    margin-right: 12px;
    min-width: 18px;
}


/* =========================================
   TEXTBOX
   ========================================= */

.login-input {
    width: 100%;
    padding: 13px 0;
    border: none;
    outline: none;
    background: transparent !important;
    font-size: 14px;
    color: var(--text-color);
}


    .login-input::placeholder {
        color: #888888;
    }


    .login-input:focus {
        outline: none;
    }


/* =========================================
   PASSWORD TOGGLE
   ========================================= */

.toggle-password {
    border: none;
    background: transparent;
    color: #888888;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.2s ease;
}


    .toggle-password:hover {
        color: var(--accent-orange);
    }


/* =========================================
   VALIDATION ERROR
   ========================================= */

.field-error {
    display: block;
    text-align: left;
    color: #d93025;
    font-size: 12px;
    margin: 0 5px 10px;
}


/* =========================================
   VALIDATION SUMMARY
   ========================================= */

.validation-summary {
    text-align: left;
    color: #d93025;
    font-size: 12px;
    margin: 8px 5px;
}


    .validation-summary ul {
        margin-left: 18px;
    }


/* =========================================
   LOGIN MESSAGE
   ========================================= */

.login-message {
    display: block;
    min-height: 18px;
    margin: 8px 0 12px;
    font-size: 13px;
    color: #d93025;
    line-height: 1.5;
}


/* =========================================
   PROGRESS CONTAINER
   ========================================= */

.progress-container {
    width: 100%;
    height: 10px;
    border-radius: 10px;
    background: var(--bg-color);
    box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
    padding: 2px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    margin-top: 0;
    transition: all 0.4s ease;
}


    /* =========================================
   ACTIVE PROGRESS
   ========================================= */

    .progress-container.show {
        opacity: 1;
        visibility: visible;
        max-height: 20px;
        margin-top: 10px;
        margin-bottom: 22px;
    }


/* =========================================
   PROGRESS BAR
   ========================================= */

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient( 90deg, #ff8c42, var(--accent-orange) );
    border-radius: 8px;
}


    /* =========================================
   PROGRESS ANIMATION
   ========================================= */

    .progress-bar.loading {
        animation: fillProgress 2.5s ease-in-out forwards;
    }


@keyframes fillProgress {

    0% {
        width: 0%;
    }

    30% {
        width: 40%;
    }

    70% {
        width: 75%;
    }

    100% {
        width: 100%;
    }
}


/* =========================================
   LOGIN BUTTON
   ========================================= */

.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 16px;
    background: var(--accent-orange);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
    transition: all 0.2s ease;
    margin-bottom: 20px;
}


    .btn-login:hover {
        background: var(--accent-orange-dark);
    }


    .btn-login:active {
        box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2);
        transform: translateY(1px);
    }


/* =========================================
   CLEAR BUTTON
   ========================================= */

.btn-clear {
    padding: 10px 24px;
    border: none;
    border-radius: 14px;
    background: var(--bg-color);
    color: #777777;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    transition: all 0.2s ease;
}


    .btn-clear:hover {
        color: var(--accent-orange);
    }


    .btn-clear:active {
        box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
    }


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 480px) {

    .login-page {
        padding: 18px;
    }


    .login-card {
        padding: 30px 22px 32px;
        border-radius: 24px;
    }


    .brand-title {
        font-size: 20px;
    }


    .logo-container  {
        width: 44px;
        height: 44px;
    }
}
