:root {
    --navbar-bg: #8a4130;
    --sidebar-bg: #66261b;
    --body-bg: #823d2e;
    --categories-bar: #ffd2ab;
    --join-btn: #00beed;
    --text-color: #ffd15c;
    --login-register: #f07f07;
    --active-sidebar: #c46735;
    --borders: #fff987;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', serif;
    background: var(--body-bg);
    min-height: 100vh;
    color: var(--text-color);
    overflow: hidden; /* Prevent scrolling when modal is open */
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.modal-overlay.closing {
    opacity: 0;
    visibility: hidden;
}

.modal-container {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 50%, #8b4513 100%);
    border: 3px solid #d4af37;
    border-radius: 20px;
    padding: 40px 35px;
    width: 400px;
    max-width: 90vw;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.modal-overlay.closing .modal-container {
    transform: scale(0.7);
}

.modal-container::before,
.modal-container::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 8px;
    background: linear-gradient(90deg, transparent, #d4af37, #ffd700, #d4af37, transparent);
    border-radius: 4px;
}

.modal-container::before {
    top: -4px;
}

.modal-container::after {
    bottom: -4px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #d4af37;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ffd700;
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: none;
}

.register-text {
    text-align: center;
    margin-bottom: 25px;
    color: #d4af37;
    font-size: 14px;
    text-transform: none;
}

.register-link {
    color: #ffd700;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: none;
}

.register-link:hover {
    color: #ffed4e;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #d4af37;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 400;
    text-transform: none;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(101, 67, 33, 0.8);
    border: 2px solid #8b4513;
    border-radius: 8px;
    color: #ffd700;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    text-transform: none;
    font-weight: 400;
    autocapitalize: none;
    autocorrect: off;
}

.form-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Open Sans', sans-serif;
    text-transform: none;
    font-weight: 300;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #d4af37;
    font-size: 18px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #ffd700;
}

.forgot-password {
    text-align: center;
    margin-bottom: 25px;
}

.forgot-link {
    color: #ffd700;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: none;
}

.forgot-link:hover {
    color: #ffed4e;
}

.login-button {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #1e90ff, #0066cc);
    border: 3px solid #d4af37;
    border-radius: 25px;
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.login-button::before,
.login-button::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #d4af37, #ffd700);
    border-radius: 50%;
}

.login-button::before {
    left: -5px;
    box-shadow:
            5px 0 0 #d4af37,
            10px 0 0 #ffd700,
            15px 0 0 #d4af37;
}

.login-button::after {
    right: -5px;
    box-shadow:
            -5px 0 0 #d4af37,
            -10px 0 0 #ffd700,
            -15px 0 0 #d4af37;
}

.login-button:hover {
    background: linear-gradient(135deg, #4169e1, #0080ff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.4);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.custom-login-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    width: 100%;
}

.username-login {
    text-align: center;
}

.username-link {
    color: #ffd700;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: none;
}

.username-link:hover {
    color: #ffed4e;
}

.eye-icon {
    width: 18px;
    height: 18px;
}

/* Hide/Show password functionality */
.password-input[type="text"] + .password-toggle .eye-closed {
    display: none;
}

.password-input[type="password"] + .password-toggle .eye-open {
    display: none;
}

/* Footer styles */
.text-custom {
    color: var(--text-color);
}

.border-custom {
    border-color: var(--borders);
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--borders);
}

/* Background page content - hidden when modal is active */
.page-content {
    opacity: 0.3;
    pointer-events: none;
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
    display: none;
}

.success-message {
    color: #4ade80;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    display: none;
}

@media (min-width: 768px) {
    footer {
        margin-left: 0;
    }
}
.btn-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
}
.btn-box:hover {
    transform: scale(1.05);
}