/* 
 * SPEED POS - Modern Login UI
 * High-end design with Glassmorphism and vibrant gradients
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #FF6B00 0%, #E95E20 100%);
    --bg-gradient: linear-gradient(135deg, #a7f3d0 0%, #ddd6fe 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-dark: #2d3436;
    --text-gray: #636e72;
}

body.login-page {
    background: var(--bg-gradient);
    background-attachment: fixed;
    background-size: 400% 400%;
    /* animation: gradientBG 15s ease infinite; */
    font-family: 'Outfit', sans-serif !important;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.login-page .row {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

/* Left side branding */
.login-page .col-lg-8 {
    padding: 2rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.login-page h2 {
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.login-page .h5 {
    font-weight: 300;
    font-size: 1.4rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Login Box */
.login-box {
    width: 400px;
    margin: 0 auto;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 2rem;
    gap: 4rem;
}

.branding {
    text-align: center;
}

.branding > div:first-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.branding > div:first-child > h2 {
    color: var(--text-dark);
}

.branding > h3 {
    text-align: center;
    font-weight: 600;
    margin: 0;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.login-card-header {
    background: transparent !important;
    border-bottom: none !important;
    padding-top: 2rem !important;
    text-align: center;
}

.login-logo img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.login-logo img:hover {
    transform: scale(1.05);
}

.login-card-body {
    padding: 0 2rem 2rem !important;
    margin-top: 2rem;
}

.login-box-msg {
    font-weight: 800;
    color: var(--text-dark) !important;
    font-size:  1.5rem;
    padding-bottom: 1.5rem !important;
}

/* Form Styling */
.input-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin-bottom: 1.5rem !important;
    border: 1px solid #14715b;
    transition: all 0.3s ease;
    overflow: hidden;
}

.input-group:focus-within {
    box-shadow: 0 0 0 4px rgba(20, 113, 91, 0.2);
    border-color: #14715b;
}

.input-group-text {
    background: transparent !important;
    border: none !important;
    color: #14715b !important;
    padding: 0 1rem;
}

.form-control {
    flex: 1;
    width: 100%;
    min-width: 0;
    background: transparent !important;
    border: none !important;
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 1rem !important;
    outline: none !important;
}

.form-control::placeholder {
    color: #a0aec0 !important;
    font-weight: 400;
}

.form-control:focus {
    box-shadow: none !important;
}

/* Button Styling */
.login-submit-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#login-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #14715b !important;
    color: #ffffff;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

#login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(20, 113, 91, 0.5);
    filter: brightness(1.1);
}

#login-btn:active {
    transform: translateY(1px);
}

/* Footer / Extra */
.login-box .card-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 1rem;
}

/* Animations */
.login-box {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .login-container {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
        height: auto;
        overflow-y: auto;
    }

    .branding h2 {
        font-size: 2.2rem;
    }

    .branding .h5 {
        font-size: 1.1rem;
    }

    .branding img {
        width: 100px;
    }

    .login-box {
        width: 100%;
        max-width: 400px;
    }

    body.login-page {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }
}

@media (max-width: 480px) {
    .branding h2 {
        font-size: 1.8rem;
    }

    .login-card-body {
        padding: 0 1.5rem 1.5rem !important;
    }
}