html {
    overflow-y: auto;
}

body {
    font-family: "Century Gothic", 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh; 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 40px 20px; 
    box-sizing: border-box;
}

body.light-theme {
    background-color: #fff;
    color: #000;
}

body.light-theme .content {
    background: rgba(238, 238, 238, 0.8);
    padding: 2em;
    border-radius: 8px;
}

body.light-theme .theme-toggle {
    color: #000;
}

body.dark-theme {
    background-color: #333;
    color: #fff;
}

body.dark-theme .content {
    background: rgba(55, 55, 55, 0.8);
    padding: 2em;
    border-radius: 8px;
}

body.dark-theme .theme-toggle {
    color: #fff;
}

.theme-toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 20;
    transition: color 0.3s ease;
}

h1 {
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    font-size: 18px;
}

h3 {
    text-align: left;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

h1, h3 {
    font-size: 30px;
    max-width: 100%;
}

.content {
    max-width: 1400px;
    width: 100%;
    margin: auto 0;
    border-radius: 8px;
    word-wrap: break-word; 
    overflow-wrap: break-word;
    position: relative;
    box-shadow: 0 0 0 rgba(255, 198, 0, 0); 
    transition: box-shadow 0.1s ease-out; 
}

.content.active-glow {
    box-shadow: var(--mouse-x, 0px) var(--mouse-y, 0px) 30px rgba(255, 198, 0, 0.6);
}

@media (max-width: 800px) {
    .content {
        padding: 1.5em;
    }
    .theme-toggle {
        font-size: 1.5rem;
    }
}

body.login-page {
    align-items: center; 
    overflow: hidden;
    padding: 0;
}

.login-box-container {
    position: relative;
    width: 380px;
    padding: 3px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.login-box-container::before {
    content: '';
    position: absolute;
    width: 250%;
    height: 250%;
    background: conic-gradient(
        transparent 70%, 
        rgba(255, 198, 0, 0.3) 90%, 
        #ffc600 100%
    );
    animation: tracer-spin 6s linear infinite;
    z-index: 0;
}

@keyframes tracer-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-content {
    position: relative;
    width: 100%;
    z-index: 1;
    border-radius: 10px;
    padding: 3em 2.5em;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

body.light-theme .login-content {
    background: rgba(238, 238, 238, 1);
}
body.dark-theme .login-content {
    background: rgba(55, 55, 55, 1);
}

.login-content h1 {
    margin: 0 0 10px 0;
    letter-spacing: 0.1rem;
    font-size: 2rem;
}

input {
    width: 100%;
    padding: 12px 15px;
    margin: 5px 0;
    border: none;
    border-radius: 5px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.3s ease;
}

body.light-theme input {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
    border-bottom: 2px solid transparent;
}
body.light-theme input:focus {
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #ffc600;
}

body.dark-theme input {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-bottom: 2px solid transparent;
}
body.dark-theme input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid #ffc600;
}

button, .btn-link {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.btn-login {
    background: #ffc600;
    color: #000;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 198, 0, 0.4);
}

.btn-register {
    background: #007bff;
    color: #fff;
    margin-top: 15px;
}
.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: bold;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 4px;
}