@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;1,200&display=swap');


:root {

    --secondary-dark: #ff5f00;

    --accent-color: #1c0354;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-secondary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f8fafc;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    min-height: 100vh;
    overflow-x: hidden;
}

.main-container {
    min-height: 100vh;
    display: flex;
}

/* Left Side - POS Image Section */
.left-section {
    flex: 1;
    background: #1c0354;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    color: white;
}

.left-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><g fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"><path d="M50 50h300v300H50z"/><path d="M100 100h200v50H100z"/><path d="M100 170h200v20H100z"/><path d="M100 200h200v20H100z"/><path d="M100 230h200v20H100z"/><path d="M100 270h80v80H100z"/><path d="M200 270h100v30H200z"/><path d="M200 310h100v20H200z"/><path d="M200 340h100v10H200z"/><circle cx="140" cy="310" r="15"/><rect x="220" y="280" width="20" height="15" rx="2"/><rect x="250" y="280" width="20" height="15" rx="2"/><rect x="280" y="280" width="20" height="15" rx="2"/></g></svg>') center/300px no-repeat; */
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 500px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    text-align: left;
    max-width: 350px;
}

.feature-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    opacity: 1;
    transform: translateX(5px);
}

.feature-list i {
    margin-right: 1rem;
    font-size: 1.25rem;
    color: #06b6d4;
}

/* Right Section - Login Form */
.right-section {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.right-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 450px;
    z-index: 2;
}

.alert:not(.alert-light) a {
    color: #92400e !important;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary), var(--accent-color));
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(var(--shadow-md));
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    display: flex;
    width: 100%;
}

.input-group-text {
    background: var(--bg-light);
    border: 1px solid #e5e7eb;
    /* border-right: none; */
    /* border-radius: 12px 0 0 12px; */
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-control {
    flex: 1;
    border: 1px solid #e5e7eb;
    /* border-radius: 0 12px 12px 0; */
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-secondary);
}

.form-control:focus {
    outline: none;
    border: #caccd2 1px solid;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: #ffffff;
}



.password-toggle {
    background: var(--bg-light);
    border: 2px solid #e5e7eb;
    border-left: none;
    border-radius: 0 12px 12px 0;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.password-toggle:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.password-input .form-control {
    border-radius: 0;
    border-right: none;
}

.password-input .input-group-text {
    border-right: 2px solid #e5e7eb;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.5rem;
    border: 2px solid #d1d5db;
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    border: none;
    border-radius: 12px;
    /* padding: 0.875rem 2rem; */
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary::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.6s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-demo {
    border: none;
    border-radius: 12px;
    /* padding: 0.75rem 1.5rem; */
    font-weight: 600;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-demo i {
    margin-right: 0.5rem;
}

.btn-demo-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
}

.btn-demo-warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    color: white;
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.forgot-password {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.form-switch {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.switch-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.switch-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.25rem;
    transition: all 0.3s ease;
}

.switch-link:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

.alert {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: none;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    color: #92400e;
}

.alert-danger {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    color: #991b1b;
}

#sign_up {
    display: none;
}

.footer {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.footer a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .left-section {
        min-height: 40vh;
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .feature-list {
        display: none;
    }

    .right-section {
        min-height: 60vh;
        padding: 1rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .left-section {
        min-height: 30vh;
    }

    .login-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pwindicator {
    margin-top: 0.5rem;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.pwindicator .bar {
    height: 100%;
    background: linear-gradient(90deg, var(--danger-color), var(--warning-color), var(--success-color));
    width: 0%;
    transition: width 0.3s ease;
}