* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a2e;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    pointer-events: none;
}

.container {
    position: relative;
    width: 900px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 1;
    pointer-events: auto;
}

.form-container {
    position: absolute;
    width: 50%;
    height: 100%;
    padding: 50px;
    transition: left 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), right 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.8s ease;
    z-index: 2;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Remove debug border */
    border: none;
}

.login-container,
.register-container {
    opacity: 1;
}

.login-container {
    left: 0; /* Start in position */
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    cursor: pointer;
}
input[type="checkbox"] {
    accent-color: #6b48ff;
}

.register-container {
    right: -50%; /* Start off-screen to the right */
    opacity: 0;
}

.container.active .login-container {
    left: -50%; /* Slide off-screen to the left */
    opacity: 0;
}

.container.active .register-container {
    right: 0; /* Slide into position */
    opacity: 1;
}

.overlay {
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, #6b48ff, #00ddeb);
    left: 50%;
    transition: left 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px;
    z-index: 1;
    pointer-events: none;
}

.overlay-content {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.5s ease;
    pointer-events: none;
}

.container.active .overlay {
    left: 0;
}

.form-container h2 {
    color: white;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
    width: 100%;
    /* Remove debug border */
    border: none;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 3;
    pointer-events: auto;
    position: relative;
    /* Remove debug border */
    border: none;
}

.input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.3);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #6b48ff, #00ddeb);
    color: white;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    z-index: 3;
    pointer-events: auto;
}

button:hover {
    background: linear-gradient(45deg, #00ddeb, #6b48ff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 221, 235, 0.4);
}

.error {
    color: #ff6b6b;
    margin-bottom: 15px;
    text-align: center;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 5px;
    z-index: 3;
    pointer-events: none;
}

.switch-btn {
    background: none;
    border: none;
    color: white;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    display: inline-block;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.switch-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #00ddeb;
    transition: width 0.3s ease;
}

.switch-btn:hover::after {
    width: 100%;
}

/* Base widget styles */
.widget-header, .widget-footer, .widget-sidebar, .widget-body {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px;
    margin: 15px;
    color: white;
    z-index: 1;
    pointer-events: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget-header:hover, .widget-footer:hover, .widget-sidebar:hover, .widget-body:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 221, 235, 0.3);
}

/* Header widget */
.widget-header {
    width: 100%;
    text-align: center;
    margin: 0 auto 15px auto;
}

.widget-header h2, .widget-header h3 {
    font-size: 1.8em;
    background: linear-gradient(45deg, #6b48ff, #00ddeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.widget-header p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
}

/* Sidebar widget */
.widget-sidebar {
    width: 250px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 10000;
}

.widget-sidebar nav ul {
    list-style: none;
    width: 100%;
}

.widget-sidebar nav ul li {
    margin: 10px 0;
}

.widget-sidebar nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px;
    display: block;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.widget-sidebar nav ul li a:hover {
    background: linear-gradient(45deg, #6b48ff, #00ddeb);
    color: white;
}

/* Footer widget */
.widget-footer {
    width: 100%;
    text-align: center;
    margin: 15px auto 0 auto;
}

.widget-footer p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
}

.widget-footer a {
    color: #00ddeb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget-footer a:hover {
    color: #6b48ff;
}

/* Body grid widgets */
.widget-body-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
}

.widget-body {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.widget-body h3 {
    font-size: 1.5em;
    background: linear-gradient(45deg, #6b48ff, #00ddeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.widget-body p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

/* Card style for body widgets */
.widget-body .card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Main layout for pages with sidebar */
.dashboard-main {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

/* Widget form styles (for widgets.php) */
.widget-section {
    margin: 20px 0;
}

.widget-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.widget-form .form-group {
    margin: 10px;
    display: flex;
    align-items: center;
}

.widget-form .form-group label {
    margin-right: 10px;
    font-size: 14px;
}

.widget-form .form-group input[type="text"],
.widget-form .form-group input[type="email"],
.widget-form .form-group select,
.widget-form .form-group textarea {
    padding: 8px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    width: 200px;
}

.widget-form .form-group textarea {
    width: 400px;
    resize: vertical;
}

.widget-form button {
    margin: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .dashboard-main {
        flex-direction: column;
        align-items: center;
    }

    .widget-sidebar {
        width: 100%;
        min-height: auto;
        margin: 0 auto 15px auto;
    }

    .widget-body-grid {
        grid-template-columns: 1fr;
    }

    .widget-body {
        min-height: 150px;
    }

    .widget-form .form-group textarea {
        width: 100%;
    }
}