:root {
    --primary-color: #7367f0;
    --primary-hover: #5e50ee;
    --text-color: #e6e6e6;
    /* Light text for dark mode */
    --text-muted: #b0b0b0;
    --glass-bg: rgba(25, 27, 40, 0.65);
    /* Dark Glass */
    --glass-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(0, 0, 0, 0.25);
    /* Darker input bg */
    --input-border: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --font-family: 'Outfit', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0f0c29;
    overflow: hidden;
    color: var(--text-color);
}

/* Background Animation */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0b0a14 0%, #161528 50%, #0f0c29 100%);
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #7367f0;
    top: -100px;
    left: -100px;
    border-radius: 50%;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #ea5455;
    bottom: -150px;
    right: -100px;
    border-radius: 50%;
    animation-delay: 2s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #28c76f;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-30px) translateX(20px);
    }

    100% {
        transform: translateY(0px) translateX(0px);
    }
}

/* Container */
.login-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Card */
.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    position: relative;
    top: -15px;
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-img {
    max-height: 80px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.welcome-text {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Switcher */
.login-method-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 12px;
}

.method-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.method-btn.active_login_btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.method-btn:hover:not(.active_login_btn) {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Inputs */

.display_none_login {
    display: none;
}

.input-group-modern {
    margin-bottom: 20px;
}

.input-group-modern label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 16px;
    z-index: 2;
    transition: 0.3s;
}

.modern-input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    font-size: 15px;
    color: #fff;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    outline: none;
}

.modern-input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(115, 103, 240, 0.15);
}

.modern-input:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--primary-color);
}

.error-text {
    color: #ea5455;
    font-size: 12px;
    margin-top: 5px;
    margin-left: 5px;
}

/* Button */
.btn-modern-primary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(115, 103, 240, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(115, 103, 240, 0.4);
}

.btn-modern-primary:active {
    transform: translateY(0);
}

/* Footer & Links */
.form-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.forgot-link,
.signup-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.forgot-link:hover,
.signup-link:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* PIN Login */
.pin-instruction {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pinlogin-field {
    box-sizing: border-box;
    border: 1px solid var(--input-border) !important;
    background: var(--input-bg) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 24px !important;
    margin-right: 18px !important;
    transition: 0.3s;
    outline: none;
    width: 60px !important;
    height: 60px !important;
}

.pinlogin-field:focus {
    border-color: var(--primary-color) !important;
    background: rgba(0, 0, 0, 0.4) !important;
    box-shadow: 0 0 0 4px rgba(115, 103, 240, 0.15);
}

/* Demo Section */
.demo-section {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.demo-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 600;
}

.demo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.demo-chip {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: #ccc;
    cursor: pointer;
    transition: 0.3s;
}

.demo-chip:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-buy-now {
    display: inline-block;
    background: #ea5455;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(234, 84, 85, 0.3);
    transition: 0.3s;
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(234, 84, 85, 0.4);
    color: #fff;
}

.system-version {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    margin-top: 20px;
}

/* Alerts */
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-danger {
    background: rgba(234, 84, 85, 0.2);
    color: #ff9f9f;
    border: 1px solid rgba(234, 84, 85, 0.3);
}

.alert-success {
    background: rgba(40, 199, 111, 0.2);
    color: #5ddfa1;
    border: 1px solid rgba(40, 199, 111, 0.3);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}