/*
  ===========================================================
  * REDESIGNED iRestora PLUS Next Gen Restaurant POS Login
  * Aesthetics: Premium, Modern Glassmorphism & Mesh Gradients
  ===========================================================
*/

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

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgba(115, 103, 240, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(237, 37, 83, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(51, 181, 229, 0.06) 0%, transparent 40%),
                #0a0814;
    color: #ffffff;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Background animated glow blobs */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.3;
    animation: float 25s infinite alternate ease-in-out;
    pointer-events: none;
}
.blob1 {
    width: 350px;
    height: 350px;
    background: #7367f0;
    top: 5%;
    left: 5%;
}
.blob2 {
    width: 450px;
    height: 450px;
    background: #ed2553;
    bottom: 5%;
    right: 5%;
    animation-duration: 30s;
    animation-delay: -5s;
}
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.1); }
    100% { transform: translate(-30px, 60px) scale(0.9); }
}

.container {
    position: relative;
    max-width: 480px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
    z-index: 10;
}

.pen-title {
    text-align: center;
    margin-bottom: 25px;
}
.pen-title img {
    max-height: 48px;
    filter: drop-shadow(0 4px 12px rgba(115, 103, 240, 0.3));
    transition: transform 0.3s ease;
}
.pen-title img:hover {
    transform: scale(1.05);
}

/* Sleek Switcher Controls */
.login-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 4px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.switcher-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 26px;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none !important;
    text-decoration: none !important;
}
.switcher-btn i {
    font-size: 15px;
}
.switcher-btn.active_login_btn {
    background: #7367f0;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(115, 103, 240, 0.35);
}
.switcher-btn:hover:not(.active_login_btn) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

/* Glassmorphism Login Card */
.card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px 35px 30px 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.card .title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 25px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: none;
    padding: 0;
}

/* Form Inputs Styling */
.input-container {
    position: relative;
    margin-bottom: 22px;
}
.input-container input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px 16px 16px 48px;
    font-size: 15px;
    color: #ffffff;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}
.input-container input:focus {
    border-color: #7367f0;
    box-shadow: 0 0 0 3px rgba(115, 103, 240, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.input-container label {
    position: absolute;
    top: 50%;
    left: 48px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating Label Transition Rules */
.input-container input:focus ~ label,
.input-container input:valid ~ label,
.input-container input:not(:placeholder-shown) ~ label {
    top: 0px;
    left: 12px;
    transform: translateY(-50%) scale(0.85);
    background: #0d0b1a; /* Match backdrop visual background */
    padding: 2px 8px;
    color: #7367f0;
    border-radius: 4px;
    font-weight: 600;
}

/* Prepend Input Icons using FontAwesome Unicode */
.input-container::before {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-family: FontAwesome;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s ease;
    z-index: 5;
    pointer-events: none;
}
.input-container-email::before {
    content: "\f0e0"; /* Envelope icon */
}
.input-container-password::before {
    content: "\f023"; /* Lock icon */
}
.input-container:focus-within::before {
    color: #7367f0;
}

.bar {
    display: none; /* Removed the old flat design bar line */
}

/* Submit Button & Animations */
.button-container {
    margin: 28px 0 10px 0 !important;
}
.submit_login {
    width: 100%;
    background: linear-gradient(135deg, #7367f0 0%, #8e84fc 100%);
    border: none;
    border-radius: 10px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(115, 103, 240, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}
.submit_login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(115, 103, 240, 0.45);
}
.submit_login:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(115, 103, 240, 0.3);
}

.card .footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
}
.card .footer a, .div_signup_link_a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.card .footer a:hover, .div_signup_link_a:hover {
    color: #7367f0;
    text-decoration: none;
}
.div_signup_link {
    font-size: 15px;
    margin-top: 15px;
    text-align: center;
}

/* Alert Boxes Style */
.red_error {
    background: rgba(237, 37, 83, 0.1);
    border: 1px solid rgba(237, 37, 83, 0.2);
    color: #ff6b8b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}
.red_error i {
    font-size: 15px;
}
.green_error {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}
.green_error i {
    font-size: 15px;
}
.error_txt {
    color: #ff6b8b;
    font-size: 12px;
    margin-top: -15px;
    margin-bottom: 15px;
    text-align: left;
    display: block;
}

/* PIN Code login fields style override */
#loginpin {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 25px 0 10px 0;
}
.pinlogin .pinlogin-field {
    width: 56px !important;
    height: 56px !important;
    font-size: 24px !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    padding: 0 !important;
}
.pinlogin .pinlogin-field:focus {
    border-color: #7367f0 !important;
    box-shadow: 0 0 0 3px rgba(115, 103, 240, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}
.pinlogin .pinlogin-field:read-only {
    background: rgba(255, 255, 255, 0.01) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.3) !important;
}
.pinlogin .pinlogin-field.invalid {
    border-color: #ed2553 !important;
    color: #ed2553 !important;
    box-shadow: 0 0 0 3px rgba(237, 37, 83, 0.2) !important;
}

/* Demo account profiles */
.demo-container {
    margin-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    text-align: center;
}
.demo-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.demo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.btn_demo {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.75) !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn_demo:hover {
    background: rgba(115, 103, 240, 0.15) !important;
    border-color: #7367f0 !important;
    color: #ffffff !important;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(115, 103, 240, 0.15);
}

.cta-default-whatsapp, .cta-demo-link {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}
.cta-default-whatsapp .btn, .cta-demo-link .btn {
    border-radius: 20px !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2) !important;
}

.pull-right {
    float: right;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 10px;
}

/* Responsive adjustment */
@media (max-width: 480px) {
    .card {
        padding: 25px 20px 20px 20px;
        border-radius: 16px;
    }
    .switcher-btn {
        font-size: 13px;
        padding: 10px 12px;
    }
    .input-container input {
        padding: 14px 14px 14px 44px;
    }
    .input-container label {
        left: 44px;
        font-size: 14px;
    }
    .input-container input:focus ~ label,
    .input-container input:valid ~ label,
    .input-container input:not(:placeholder-shown) ~ label {
        left: 12px;
    }
    .pinlogin .pinlogin-field {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
    }
}