/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-login {
    background: #8B0000;
    color: #fff;
}

.btn-login:hover {
    background: #a00000;
    transform: translateY(-2px);
}

.btn-signup {
    background: #fff;
    color: #8B0000;
    border: 2px solid #8B0000;
}

.btn-signup:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.btn-logout {
    background: #8B0000;
    color: #fff;
}

.btn-logout:hover {
    background: #a00000;
}

.btn-guestbook {
    background: #ffc107 !important;
    color: #8B0000 !important;
    border: none;
}

.btn-guestbook:hover {
    background: #ffb300 !important;
    transform: translateY(-2px);
}

/* Modal Overlay */
.auth-overlay {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.auth-overlay.active {
    display: block;
}

/* Modal */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 450px;
    animation: slideIn 0.3s ease;
}

.auth-modal.active {
    display: block;
}

.modal-content {
    background-color: #fefefe;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-content h2 {
    margin-bottom: 30px;
    color: #8B0000;
    font-size: 24px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 20px;
}

.close:hover,
.close:focus {
    color: #000;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 5px rgba(139, 0, 0, 0.3);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 12px;
    background: #8B0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #a00000;
}

/* Form Link */
.form-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.form-link a {
    color: #8B0000;
    text-decoration: none;
    font-weight: 600;
}

.form-link a:hover {
    text-decoration: underline;
}

/* Messages */
.message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

.message.active {
    display: block;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .auth-modal {
        max-width: 90%;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .auth-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .header-right {
        flex-direction: column;
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }
}
