:root {
    /* Default is now Digital Dark Theme */
    --bg-color: #000;
    --container-bg: #1f1f1f;
    --text-color: #e0e0e0;
    --input-bg: #2a2a2a;
    --input-border: #444;
    --primary-btn: #00cc00;
    --primary-btn-hover: #00b300;
    --divider-color: #666;
    --accent-color: #00cc00;
}

/* Optional: Light theme variables */
.light-theme {
    --bg-color: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --container-bg: #fff;
    --text-color: #333;
    --input-bg: #fff;
    --input-border: #ddd;
    --primary-btn: #4CAF50;
    --primary-btn-hover: #45a049;
    --divider-color: #999;
    --accent-color: #4CAF50;
}

body {
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

/* Digital background effect (now always active) */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 204, 0, 0.1) 0%, transparent 70%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 10px, transparent 10px, transparent 20px);
    z-index: -1;
    opacity: 0.8;
}

.auth-container {
    background: var(--container-bg);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    min-height: 60vh;
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--accent-color);
    transition: background 0.3s ease, border 0.3s ease;
}

.auth-image {
    background: url('https://i0.wp.com/media1.giphy.com/media/12dAkjipxibUSA/giphy.gif') no-repeat center/cover;
    flex: 1;
    min-height: 500px;
    display: none;
    border-right: 1px solid var(--accent-color);
    position: relative;
}

.left-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.auth-form {
    padding: 20px;
    flex: 1;
    min-width: 320px;
    max-height: 90vh;
    /* Fixed height to enable scrolling */
    overflow-y: auto;
    /* Enable vertical scrolling */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on touch devices */
}

.reg-form-div {
    margin-top: 2rem;
}

.logo {
    max-width: 150px;
    margin-bottom: 20px;
    /*filter: drop-shadow(0 0 5px var(--accent-color));*/
}

h4 {
    font-weight: 600;
    color: var(--text-color);
    text-shadow: 0 0 5px var(--accent-color);
}

p {
    color: #bbb;
    margin-bottom: 30px;
}

.form-control {
    border-radius: 8px;
    padding: 3px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-color);
    box-shadow: inset 0 0 5px rgba(0, 204, 0, 0.2);
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
}

.input-group-text {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
}

.btn-primary {
    background: var(--primary-btn);
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 0 10px var(--primary-btn);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-btn-hover);
    box-shadow: 0 0 15px var(--primary-btn-hover);
}

.btn-secondary {
    border-radius: 8px;
    padding: 12px;
}

.text-danger {
    font-size: 12px;
}

.form-check-label ripr form-check-input {
    color: var(--text-color);
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-color);
    text-shadow: 0 0 5px var(--accent-color);
    transition: transform 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.2);
}

.developer-btn {
    position: fixed;
    top: 15px;
    right: 60px;
    background: yellow;
    color: blue;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 0 10px var(--primary-btn);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.developer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--primary-btn-hover);
    color: #fff;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--divider-color);
    margin: 30px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--divider-color);
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    background: var(--container-bg);
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .auth-image {
        display: block;
    }
}

.auth-form {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

input,
button {
    width: 100%;
}

@media (max-width: 768px) {
    .auth-form {
        padding: 20px;
    }

    .auth-container {
        margin: 20px;
        width: calc(100% - 40px);
    }

    h4 {
        font-size: 20px;
    }

    .developer-btn {
        right: 20px;
        top: auto;
        bottom: 20px;
    }

    .theme-toggle {
        right: 20px;
        top: 20px;
    }

    .reg-form-div {
        margin-top: 1rem;
    }

    .logo {
        max-width: 100px;
    }
}